Learn R Programming

SpaDES (version 1.3.0)

paths: Specify paths for modules, inputs, and outputs

Description

Accessor functions for the paths slot in a simList object.

Usage

paths(object)
"paths"(object)
paths(object) <- value
"paths"(object) <- value
cachePath(object)
"cachePath"(object)
cachePath(object) <- value
"cachePath"(object) <- value
inputPath(object)
"inputPath"(object)
inputPath(object) <- value
"inputPath"(object) <- value
outputPath(object)
"outputPath"(object)
outputPath(object) <- value
"outputPath"(object) <- value
modulePath(object)
"modulePath"(object)
modulePath(object) <- value
"modulePath"(object) <- value

Arguments

object
A simList simulation object.
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: a subdirectory of the current working directory ("./cache");

  • inputPath: the current working directory (".";
  • modulePath: getOption("spades.modulePath");
  • inputPath: the current working directory (".";
  • See Also

    SpaDES, 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, ls.simList, ls.str.simList, modules, objs, packages, params, progressInterval, times