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

853

Version

0.2.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Chubaty

Last Published

February 3rd, 2019

Functions in SpaDES.core (0.2.4)

checkModuleLocal

Check for the existence of a module locally
createsOutput

Define an output object of a module
append_attr

Add a module to a moduleList
defineModule

Define a new module.
Copy,simList-method

Copy for simList class objects
.fileTableIn

Create empty fileTable for inputs and outputs
.fillInputRows

An internal function for coercing a data.frame to inputs()
.addChangedAttr,simList-method

.addChangedAttr for simList class objects
globals

Get and set simulation globals.
.addDepends

Add simulation dependencies
.cacheMessage,simList-method

cacheMessage for simList class objects
.identifyChildModules

Identify Child Modules from a recursive list
.addTagsToOutput,simList-method

addTagsToOutput for simList class objects
checkModule

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

checkCacheRepo for simList class objects
all.equal.simList

All equal method for simLists
.findModuleName

Identify module names up to a given recursive level
findObjects

Find objects if passed as character strings
checksums

Calculate checksum for a module's data files
minTimeunit

Determine the smallest timeunit in a simulation
copyModule

Create a copy of an existing module
initialize,simList-method

Generate a simList object
classFilter

Filter objects by class
objectDiagram

Simulation object dependency diagram
.modifySearchPath

Modify package order in search path
objectSynonyms

Identify synonyms in a simList
doEvent

Process a simulation event
POM

Use Pattern Oriented Modeling to fit unknown parameters
.depsPruneEdges

Prune edges to remove cycles in module dependencies
defineParameter

Define a parameter used in a module
._inputObjectsDF

Create an empty data.frame object for use with inputObjects or outputObjects
.pkgEnv

The SpaDES.core package environment
eventDiagram

Simulation event diagram
expectsInput

Define an input object that the module expects.
.preDigestByClass,simList-method

Pre-digesting method for simList
.coreModules

Named list of core SpaDES modules
.fileExtensions

File extensions map
depsGraph

Build a module dependency graph
moduleCoverage

Calculate module coverage of unit tests
loadPackages

Load packages.
fileName

Extract filename (without extension) of a file
.depsLoadOrder

Determine module load order
.fileEdit

Open a file for editing
.getModuleInputObjects

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

Defaults values used in defineModule
objs

Extract or replace an object from the simulation environment
openModules

Open all modules nested within a base directory
.robustDigest,simList-method

.robustDigest for simList class objects
getModuleVersion

Find the latest module version from a SpaDES module repository
inputs

Inputs and outputs
makeMemoisable.simList

Make simList correctly work with memoise
depsEdgeList

Build edge list for module dependency graph
maxTimeunit

Determine the largest timestep unit in a simulation
.moduleDeps-class

The .moduleDeps class
moduleDiagram

Simulation module dependency diagram
progressInterval

Get and set simulation progress bar details
newModule

Create new module from template
newProgressBar

Progress bar
inputObjects

Metadata accessors
newModuleCode

Create new module code file
.runCodeChecks

Runs a series of code checks during simInit
objSize.simList

Object size for simLists
rasterToMemory

Read raster to memory
.quickCheck

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

Blank (template) event list
.objSizeInclEnviros,simList-method

objSizeInclEnviros for simList class objects
.tagsByClass,simList-method

tagsByClass for simList class objects
.emptyMetadata

Default (empty) metadata
.sim2gantt

sim2gantt
params

Get and set simulation parameters.
.findSimList

Find simList in a nested list
.simDeps-class

The .simDeps class
ganttStatus

ganttStatus
dyears

SpaDES time units
.parseElems,simList-method

.parseElems for simList class objects
inSeconds

Convert time units
moduleGraph

Build a module dependency graph
moduleMetadata

Parse and extract module metadata
newModuleDocumentation

Create new module documentation
modules

Simulation modules and dependencies
paths

Specify paths for modules, inputs, and outputs
newModuleTests

Create template testing structures for new modules
.prepareOutput,simList-method

.prepareOutput for simList
suppliedElsewhere

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

Event priority
updateList

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

Schedule a simulation event
scheduleConditionalEvent

Schedule a conditional simulation event
zipModule

Create a zip archive of a module subdirectory
.verb

Chose verb conjugation for "to be"
Plot,simList-method

Plot method for simList objects
remoteFileSize

Determine the size of a remotely hosted file
SpaDES.core-package

Categorized overview of the SpaDES.core package
simInit

Initialize a new simulation
rndstr

Generate random strings
checkParams

Check use and existence of params passed to simulation.
doEvent.checkpoint

Simulation checkpoints.
envir

Simulation environment
downloadData

Download module data
simInitAndSpades

Call simInit and spades or experiment together
downloadModule

Download a module from a SpaDES module GitHub repository
experiment

events

Simulation event lists
simList_-class

The simList_ class
spadesClasses

Classes defined in SpaDES
extractURL

Extract a url from module metadata
.fillOutputRows

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

Find all references to sim$
spades

Run a spatial discrete event simulation
.isNamespaced

Check is module uses module namespacing
.getOption

A slightly modified version of getOption
.tryCatch

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

Attach missing attributes from x to y
moduleVersion

Parse and extract a module's version
.unparsed

Determine which modules in a list are unparsed
.callingModuleName

Namespacing within SpaDES
packages

Get module or simulation package dependencies
paddedFloatToChar

Convert numeric to character with padding
.parseMessage

Prepend module name to a message
.parseModulePartial

Parse and initialize a module
.runModuleInputObjects

Run module's .inputObjects
saveFiles

Save objects using .saveObjects in params slot of simInit
setPaths

Get and set default working directories
show,simList-method

Show an Object
times

Time usage in SpaDES
simList-class

The simList class
checkObject

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