Learn R Programming

⚠️There's a newer version (2.1.8) of this package.Take me there.

SpaDES.core

Core functionality for Spatial Discrete Event Simulation (SpaDES)

Website: http://SpaDES.PredictiveEcology.org

Wiki: https://github.com/PredictiveEcology/SpaDES/wiki

Installation

Current stable release

Install from CRAN:

install.packages("SpaDES.core")

Install from GitHub:

#install.packages("devtools")
library("devtools")
install_github("PredictiveEcology/SpaDES.core", dependencies = TRUE) # stable

Development version (unstable)

Install from GitHub:

#install.packages("devtools")
library("devtools")
install_github("PredictiveEcology/SpaDES.core", ref = "development", dependencies = TRUE) # unstable

Copy Link

Version

Install

install.packages('SpaDES.core')

Monthly Downloads

842

Version

0.2.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Chubaty

Last Published

September 13th, 2019

Functions in SpaDES.core (0.2.6)

.addDepends

Add simulation dependencies
append_attr

Add a module to a moduleList
Copy,simList-method

Copy for simList class objects
all.equal.simList

All equal method for simLists
.addTagsToOutput,simList-method

.addTagsToOutput for simList objects
.cacheMessage,simList-method

.cacheMessage for simList objects
Plot,simList-method

Plot method for simList objects
.addChangedAttr,simList-method

.addChangedAttr for simList objects
POM

Use Pattern Oriented Modeling to fit unknown parameters
SpaDES.core-package

Categorized overview of the SpaDES.core package
checkParams

Check use and existence of params passed to simulation.
classFilter

Filter objects by class
createsOutput

Define an output object of a module
checksums

Calculate checksum for a module's data files
checkModuleLocal

Check for the existence of a module locally
downloadData

Download module data
.fileTableIn

Create empty fileTable for inputs and outputs
checkObject

Check for existence of object(s) referenced by a objects slot of a simList object
fileName

Extract filename (without extension) of a file
.setupCl

Start and/or setup a parallel cluster
doEvent.checkpoint

Simulation checkpoints.
getModuleVersion

Find the latest module version from a SpaDES module repository
copyModule

Create a copy of an existing module
.coreModules

Named list of core SpaDES modules
defineParameter

Define a parameter used in a module
checkModule

Check for the existence of a remote module
.checkCacheRepo,list-method

.checkCacheRepo for simList objects
depsEdgeList

Build edge list for module dependency graph
.fillInputRows

An internal function for coercing a data.frame to inputs()
depsGraph

Build a module dependency graph
.fillOutputRows

An internal function for coercing a data.frame to outputs()
.identifyChildModules

Identify Child Modules from a recursive list
globals

Get and set simulation globals.
defineModule

Define a new module.
.emptyMetadata

Default (empty) metadata
.findElementsInEnv

Find all references to sim$
eventDiagram

Simulation event diagram
.depsPruneEdges

Prune edges to remove cycles in module dependencies
ganttStatus

ganttStatus
doEvent

Process a simulation event
extractURL

Extract a url from module metadata
.fileEdit

Open a file for editing
.depsLoadOrder

Determine module load order
initialize,simList-method

Generate a simList object
expectsInput

Define an input object that the module expects.
moduleMetadata

Parse and extract module metadata
.findSimList

Find simList in a nested list
emptyEventList

Blank (template) event list
maxTimeunit

Determine the largest timestep unit in a simulation
minTimeunit

Determine the smallest timeunit in a simulation
downloadModule

Download a module from a SpaDES module GitHub repository
findObjects

Find objects if passed as character strings
moduleCoverage

Calculate module coverage of unit tests
.modifySearchPath

Modify package order in search path
.objSizeInclEnviros,simList-method

.objSizeInclEnviros for simList objects
experiment

.keepAttrs

Attach missing attributes from x to y
newModuleCode

Create new module code file
.preDigestByClass,simList-method

Pre-digesting method for simList
newModuleDocumentation

Create new module documentation
moduleVersion

Parse and extract a module's version
events

Simulation event lists
.parseModulePartial

Parse and initialize a module
envir

Simulation environment
objectDiagram

Simulation object dependency diagram
.pkgEnv

The SpaDES.core package environment
.getModuleInputObjects

Extract the user-defined .inputObjects function from a module
inputs

Inputs and outputs
rndstr

Generate random strings
modules

Simulation modules and dependencies
updateList

Update elements of a named list with elements of a second named list
paths

Specify paths for modules, inputs, and outputs
show,simList-method

Show an Object
restartSpades

Restart an interrupted simulation
.prepareOutput,simList-method

.prepareOutput for simList objects
.verb

Chose verb conjugation for "to be"
setPaths

Get and set default working directories
.fileExtensions

File extensions map
inputObjects

Metadata accessors
loadPackages

Load packages.
scheduleEvent

Schedule a simulation event
.quickCheck

The SpaDES.core variable to switch between quick and robust checking
packages

Get module or simulation package dependencies
scheduleConditionalEvent

Schedule a conditional simulation event
openModules

Open all modules nested within a base directory
newProgressBar

Progress bar
simList_-class

The simList_ class
spadesClasses

Classes defined in SpaDES
.findModuleName

Identify module names up to a given recursive level
.callingModuleName

Namespacing within SpaDES
.tryCatch

tryCatch that keeps warnings, errors and value (result)
.unparsed

Determine which modules in a list are unparsed
newModuleTests

Create template testing structures for new modules
newModule

Create new module from template
objSize.simList

Object size for simList
._inputObjectsDF

Create an empty data.frame object for use with inputObjects or outputObjects
.parseElems,simList-method

.parseElems for simList class objects
moduleDiagram

Simulation module dependency diagram
.isNamespaced

Check is module uses module namespacing
moduleGraph

Build a module dependency graph
paddedFloatToChar

Convert numeric to character with padding
.parseMessage

Prepend module name to a message
makeMemoisable.simList

Make simList correctly work with memoise
params

Get and set simulation parameters.
moduleDefaults

Defaults values used in defineModule
.robustDigest,simList-method

.robustDigest for simList objects
.runCodeChecks

Runs a series of code checks during simInit
rasterToMemory

Read raster to memory
remoteFileSize

Determine the size of a remotely hosted file
.sim2gantt

sim2gantt
spades

Run a spatial discrete event simulation
.getOption

A slightly modified version of getOption
zipModule

Create a zip archive of a module subdirectory
.simDeps-class

The .simDeps class
times

Time usage in SpaDES
.moduleDeps-class

The .moduleDeps class
objectSynonyms

Identify synonyms in a simList
priority

Event priority
objs

Extract or replace an object from the simulation environment
progressInterval

Get and set simulation progress bar details
.runModuleInputObjects

Run module's .inputObjects
simList-class

The simList class
dyears

SpaDES time units
suppliedElsewhere

Assess whether an object has or will be supplied from elsewhere
inSeconds

Convert time units
simInit

Initialize a new simulation
saveFiles

Save objects using .saveObjects in params slot of simInit
.tagsByClass,simList-method

.tagsByClass for simList objects
simInitAndSpades

Call simInit and spades or experiment together