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) # master

Development version (unstable)

Install from GitHub:

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

Contributions

Please see CONTRIBUTING.md for information on how to contribute to this project.

Copy Link

Version

Install

install.packages('SpaDES.core')

Monthly Downloads

853

Version

0.2.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Chubaty

Last Published

November 25th, 2019

Functions in SpaDES.core (0.2.7)

Plot,simList-method

Plot method for simList objects
.checkCacheRepo,list-method

.checkCacheRepo for simList objects
SpaDES.core-package

Categorized overview of the SpaDES.core package
Copy,simList-method

Copy for simList class objects
.cacheMessage,simList-method

.cacheMessage for simList objects
.addChangedAttr,simList-method

.addChangedAttr for simList objects
.addTagsToOutput,simList-method

.addTagsToOutput for simList objects
all.equal.simList

All equal method for simLists
append_attr

Add a module to a moduleList
.addDepends

Add simulation dependencies
doEvent.checkpoint

Simulation checkpoints.
.depsPruneEdges

Prune edges to remove cycles in module dependencies
checkParams

Check use and existence of params passed to simulation.
checkObject

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

Determine module load order
.fileEdit

Open a file for editing
defineParameter

Define a parameter used in a module
checkModuleLocal

Check for the existence of a module locally
experiment

Deprecated functions
checkModule

Check for the existence of a remote module
fileName

Extract filename (without extension) of a file
extractURL

Extract a url from module metadata
checksums

Calculate checksum for a module's data files
expectsInput

Define an input object that the module expects.
ganttStatus

ganttStatus
._inputObjectsDF

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

Find simList in a nested list
initialize,simList-method

Generate a simList object
copyModule

Create a copy of an existing module
globals

Get and set global simulation parameters
classFilter

Filter objects by class
.coreModules

Named list of core SpaDES modules
.identifyChildModules

Identify Child Modules from a recursive list
clearCache,simList-method

clearCache for simList objects
makeMemoisable.simList

Make simList correctly work with memoise
minTimeunit

Determine the smallest timeunit in a simulation
getModuleVersion

Find the latest module version from a SpaDES module repository
emptyEventList

Blank (template) event list
downloadData

Download module data
downloadModule

Download a module from a SpaDES module GitHub repository
doEvent

Process a simulation event
memoryUseThisSession

Estimate memory used with system("ps")
.getModuleInputObjects

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

Determine the largest timestep unit in a simulation
.callingModuleName

Namespacing within SpaDES
moduleDefaults

Defaults values used in defineModule
newModuleTests

Create template testing structures for new modules
newProject

Create new SpaDES project
moduleMetadata

Parse and extract module metadata
moduleVersion

Parse and extract a module's version
.moduleDeps-class

The .moduleDeps class
.parseMessage

Prepend module name to a message
.parseElems,simList-method

.parseElems for simList class objects
depsGraph

Build a module dependency graph
depsEdgeList

Build edge list for module dependency graph
createsOutput

Define an output object of a module
newModule

Create new module from template
objs

Extract or replace an object from the simulation environment
objectSynonyms

Identify synonyms in a simList
openModules

Open all modules nested within a base directory
remoteFileSize

Determine the size of a remotely hosted file
packages

Get module or simulation package dependencies
rasterToMemory

Read raster to memory
.emptyMetadata

Default (empty) metadata
.fillOutputRows

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

Simulation event diagram
.findElementsInEnv

Find all references to sim$
loadPackages

Load packages.
.fileExtensions

File extensions map
.objSizeInclEnviros,simList-method

.objSizeInclEnviros for simList objects
objectDiagram

Simulation object dependency diagram
defineModule

Define a new module.
.fileTableIn

Create empty fileTable for inputs and outputs
.fillInputRows

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

Modify package order in search path
newProjectCode

Create new module code file
.preDigestByClass,simList-method

Pre-digesting method for simList
objSize.simList

Object size for simList
moduleCoverage

Calculate module coverage of unit tests
.prepareOutput,simList-method

.prepareOutput for simList objects
saveSimList

Save a whole simList object to disk
saveFiles

Save objects using .saveObjects in params slot of simInit
simInit

Initialize a new simulation
paddedFloatToChar

Convert numeric to character with padding
.runCodeChecks

Runs a series of code checks during simInit
newProgressBar

Progress bar
.quickCheck

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

Generate random strings
.findModuleName

Identify module names up to a given recursive level
simInitAndSpades

Call simInit and spades together
.isNamespaced

Check is module uses module namespacing
findObjects

Find objects if passed as character strings
.robustDigest,simList-method

.robustDigest for simList objects
setPaths

Get and set default working directories
params

Get and set simulation parameters
restartSpades

Restart an interrupted simulation
restartR

Restart R programmatically
show,simList-method

Show an Object
.sim2gantt

sim2gantt
.keepAttrs

Attach missing attributes from x to y
envir

Simulation environment
.getOption

A slightly modified version of getOption
dyears

SpaDES time units
moduleDiagram

Simulation module dependency diagram
.unparsed

Determine which modules in a list are unparsed
updateList

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

Simulation event lists
.simDeps-class

The .simDeps class
moduleGraph

Build a module dependency graph
.runModuleInputObjects

Run module's .inputObjects
.tryCatch

tryCatch that keeps warnings, errors and value (result)
times

Time usage in SpaDES
inSeconds

Convert time units
simList-class

The simList class
modules

Simulation modules and dependencies
newModuleDocumentation

Create new module documentation
.pkgEnv

The SpaDES.core package environment
zipSimList

Zip many of the files in a simList
newModuleCode

Create new module code file
.parseModulePartial

Parse and initialize a module
priority

Event priority
progressInterval

Get and set simulation progress bar details
scheduleConditionalEvent

Schedule a conditional simulation event
scheduleEvent

Schedule a simulation event
paths

Specify paths for modules, inputs, outputs, and temporary rasters
suppliedElsewhere

Assess whether an object has or will be supplied from elsewhere
.tagsByClass,simList-method

.tagsByClass for simList objects
inputs

Inputs and outputs
inputObjects

Metadata accessors
spades

Run a spatial discrete event simulation
spadesClasses

Classes defined in SpaDES
zipModule

Create a zip archive of a module subdirectory
.verb

Chose verb conjugation for "to be"