Skip to content

SpaDES.core

Core Utilities for Developing and Running Spatially Explicit Discrete Event Models

v3.0.4 · Jan 10, 2026 · GPL-3

Description

Provides the core framework for a discrete event system to implement a complete data-to-decisions, reproducible workflow. The core components facilitate the development of modular pieces, and enable the user to include additional functionality by running user-built modules. Includes conditional scheduling, restart after interruption, packaging of reusable modules, tools for developing arbitrary automated workflows, automated interweaving of modules of different temporal resolution, and tools for visualizing and understanding the within-project dependencies. The suggested package 'NLMR' can be installed from the repository (<https://PredictiveEcology.r-universe.dev>).

Downloads

593

Last 30 days

6348th

593

Last 90 days

593

Last year

CRAN Check Status

1 ERROR
3 NOTE
10 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (17 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘SpaDES.core-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: outputs
> ### Title: Simulation outputs
> ### Aliases: outputs outputs,simList-method outputs<-
> ###   outputs<-,simList-method registerOutputs outputArgs
> ###   outputArgs,simList-method outputArgs<- outputArgs<-,simList-method
> 
> ### ** Examples
> 
> #######################
> # outputs
> #######################
> 
> tmpdir <- file.path(tempdir(), "outputs") |> checkPath(create = TRUE)
> tmpFile <- file.path(tmpdir, "temp.rds")
> tempObj <- 1:10
> 
> # Can add data.frame of outputs directly into simInit call
> sim <- simInit(objects = c("tempObj"),
+                outputs = data.frame(objectName = "tempObj"),
+                paths = list(outputPath = tmpdir))
Setting:
  options(
    spades.outputPath = '/tmp/RtmplGG8pY/outputs'
  )
Paths set to:
  options(
    rasterTmpDir = '/tmp/RtmplGG8pY/SpaDES/scratch/raster'
    reproducible.cachePath = '/tmp/RtmplGG8pY/myProject/cache'
    spades.inputPath = '/tmp/RtmplGG8pY/myProject/inputs'
    spades.outputPath = '/tmp/RtmplGG8pY/outputs'
    spades.modulePath = '/tmp/RtmplGG8pY/myProject/modules'
    spades.scratchPath = '/tmp/RtmplGG8pY/SpaDES/scratch'
  )
  terra::terraOptions(tempdir = '/tmp/RtmplGG8pY/SpaDES/scratch/terra')
Mar08 14:34:55 simInit Using setDTthreads(1). To change: 'options(spades.DTthreads = X)'.
Error in basename(x) : a character vector argument expected
Calls: simInit ... <Anonymous> -> ifelse -> grepl -> is.factor -> basename
Elapsed time for simInit: 0.08081722 secs
Execution halted
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  7.3Mb
  sub-directories of 1Mb or more:
    R   5.6Mb
NOTE r-oldrel-macos-arm64

package dependencies

Packages suggested but not available for checking: 'NLMR', 'SpaDES.tools'
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  7.7Mb
  sub-directories of 1Mb or more:
    R   6.0Mb
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘NLMR’
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  6.8Mb
  sub-directories of 1Mb or more:
    R   5.1Mb
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'NLMR'
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘SpaDES.core-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: outputs
> ### Title: Simulation outputs
> ### Aliases: outputs outputs,simList-method outputs<-
> ###   outputs<-,simList-method registerOutputs outputArgs
> ###   outputArgs,simList-method outputArgs<- outputArgs<-,simList-method
> 
> ### ** Examples
> 
> #######################
> # outputs
> #######################
> 
> tmpdir <- file.path(temp
NOTE r-oldrel-macos-arm64

package dependencies

Packages suggested but not available for checking: 'NLMR', 'SpaDES.tools'
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘NLMR’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'NLMR'

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies quickPlot reproducible cli data.table fs igraph lobstr qs2 Require terra whisker SpaDES NetLogoR SpaDES.core

Version History

new 3.0.4 Mar 9, 2026