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.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Chubaty

Last Published

March 19th, 2019

Functions in SpaDES.core (0.2.5)

.addTagsToOutput,simList-method

.addTagsToOutput for simList objects
all.equal.simList

All equal method for simLists
append_attr

Add a module to a moduleList
checksums

Calculate checksum for a module's data files
classFilter

Filter objects by class
.cacheMessage,simList-method

.cacheMessage for simList objects
copyModule

Create a copy of an existing module
extractURL

Extract a url from module metadata
.coreModules

Named list of core SpaDES modules
.fileEdit

Open a file for editing
depsGraph

Build a module dependency graph
.findElementsInEnv

Find all references to sim$
.depsLoadOrder

Determine module load order
fileName

Extract filename (without extension) of a file
.findModuleName

Identify module names up to a given recursive level
Plot,simList-method

Plot method for simList objects
SpaDES.core-package

Categorized overview of the SpaDES.core package
.fileTableIn

Create empty fileTable for inputs and outputs
checkModuleLocal

Check for the existence of a module locally
loadPackages

Load packages.
makeMemoisable.simList

Make simList correctly work with memoise
defineParameter

Define a parameter used in a module
getModuleVersion

Find the latest module version from a SpaDES module repository
depsEdgeList

Build edge list for module dependency graph
globals

Get and set simulation globals.
moduleDiagram

Simulation module dependency diagram
Copy,simList-method

Copy for simList class objects
POM

Use Pattern Oriented Modeling to fit unknown parameters
createsOutput

Define an output object of a module
checkObject

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

Build a module dependency graph
defineModule

Define a new module.
checkParams

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

Simulation checkpoints.
.keepAttrs

Attach missing attributes from x to y
.fileExtensions

File extensions map
expectsInput

Define an input object that the module expects.
.findSimList

Find simList in a nested list
findObjects

Find objects if passed as character strings
.depsPruneEdges

Prune edges to remove cycles in module dependencies
.callingModuleName

Namespacing within SpaDES
experiment

.addChangedAttr,simList-method

.addChangedAttr for simList objects
moduleDefaults

Defaults values used in defineModule
newModuleTests

Create template testing structures for new modules
objSize.simList

Object size for simList
.parseElems,simList-method

.parseElems for simList class objects
.moduleDeps-class

The .moduleDeps class
._inputObjectsDF

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

Parse and extract module metadata
.isNamespaced

Check is module uses module namespacing
newModule

Create new module from template
moduleVersion

Parse and extract a module's version
openModules

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

.objSizeInclEnviros for simList objects
.parseMessage

Prepend module name to a message
objectDiagram

Simulation object dependency diagram
doEvent

Process a simulation event
downloadModule

Download a module from a SpaDES module GitHub repository
.addDepends

Add simulation dependencies
.checkCacheRepo,list-method

.checkCacheRepo for simList objects
emptyEventList

Blank (template) event list
objectSynonyms

Identify synonyms in a simList
rasterToMemory

Read raster to memory
remoteFileSize

Determine the size of a remotely hosted file
newProgressBar

Progress bar
packages

Get module or simulation package dependencies
priority

Event priority
scheduleEvent

Schedule a simulation event
.fillInputRows

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

Get and set default working directories
objs

Extract or replace an object from the simulation environment
.parseModulePartial

Parse and initialize a module
.quickCheck

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

The SpaDES.core package environment
.fillOutputRows

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

Check for the existence of a remote module
.identifyChildModules

Identify Child Modules from a recursive list
rndstr

Generate random strings
show,simList-method

Show an Object
.sim2gantt

sim2gantt
.robustDigest,simList-method

.robustDigest for simList objects
.setupCl

Start and/or setup a parallel cluster
initialize,simList-method

Generate a simList object
progressInterval

Get and set simulation progress bar details
inputObjects

Metadata accessors
modules

Simulation modules and dependencies
paths

Specify paths for modules, inputs, and outputs
saveFiles

Save objects using .saveObjects in params slot of simInit
inSeconds

Convert time units
times

Time usage in SpaDES
moduleCoverage

Calculate module coverage of unit tests
.modifySearchPath

Modify package order in search path
downloadData

Download module data
.tryCatch

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

Default (empty) metadata
newModuleCode

Create new module code file
newModuleDocumentation

Create new module documentation
.preDigestByClass,simList-method

Pre-digesting method for simList
scheduleConditionalEvent

Schedule a conditional simulation event
events

Simulation event lists
.prepareOutput,simList-method

.prepareOutput for simList objects
.runCodeChecks

Runs a series of code checks during simInit
.runModuleInputObjects

Run module's .inputObjects
eventDiagram

Simulation event diagram
ganttStatus

ganttStatus
inputs

Inputs and outputs
spadesClasses

Classes defined in SpaDES
.getModuleInputObjects

Extract the user-defined .inputObjects function from a module
.simDeps-class

The .simDeps class
spades

Run a spatial discrete event simulation
.verb

Chose verb conjugation for "to be"
zipModule

Create a zip archive of a module subdirectory
maxTimeunit

Determine the largest timestep unit in a simulation
minTimeunit

Determine the smallest timeunit in a simulation
paddedFloatToChar

Convert numeric to character with padding
params

Get and set simulation parameters.
simInit

Initialize a new simulation
.getOption

A slightly modified version of getOption
simInitAndSpades

Call simInit and spades or experiment together
simList-class

The simList class
envir

Simulation environment
suppliedElsewhere

Assess whether an object has or will be supplied from elsewhere
simList_-class

The simList_ class
dyears

SpaDES time units
.tagsByClass,simList-method

.tagsByClass for simList objects
.unparsed

Determine which modules in a list are unparsed
updateList

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