Accessor functions for the paths slot in a simList object.

dataPath will return file.path(modulePath(sim), currentModule(sim), "data"). dataPath, like currentModule,is namespaced. This means that when it is used inside a module, then it will return that model-specific information. For instance, if used inside a module called "movingAgent", then currentModule(sim) will return "movingAgent", and dataPath(sim) will return file.path(modulePath(sim), "movingAgent", "data")

paths(sim)

# S4 method for simList
paths(sim)

paths(sim) <- value

# S4 method for simList
paths(sim) <- value

cachePath(sim)

# S4 method for simList
cachePath(sim)

cachePath(sim) <- value

# S4 method for simList
cachePath(sim) <- value

inputPath(sim)

# S4 method for simList
inputPath(sim)

inputPath(sim) <- value

# S4 method for simList
inputPath(sim) <- value

outputPath(sim)

# S4 method for simList
outputPath(sim)

outputPath(sim) <- value

# S4 method for simList
outputPath(sim) <- value

modulePath(sim)

# S4 method for simList
modulePath(sim)

modulePath(sim) <- value

# S4 method for simList
modulePath(sim) <- value

dataPath(sim)

# S4 method for simList
dataPath(sim)

Arguments

sim

A simList object from which to extract element(s) or in which to replace element(s).

value

The object to be stored at the slot.

Value

Returns or sets the value of the slot from the simList object.

Details

These are ways to add or access the file paths used by spades. There are four file paths: cachePath, modulePath, inputPath, and outputPath. Each has a function to get or set the value in a simList object. If no paths are specified, the defaults are as follows:

  • cachePath: getOption("spades.cachePath");

  • inputPath: getOption("spades.modulePath");

  • modulePath: getOption("spades.inputPath");

  • inputPath: getOption("spades.outputPath").

See also

SpaDES.core-package, specifically the section 1.2.4 on Simulation Paths.

Other functions to access elements of a simList object: .addDepends, doEvent.checkpoint, envir, events, globals, inputs, modules, objs, packages, params, progressInterval, times