Wrapper functions to access the packages options for default working directories.

.paths()

getPaths()

setPaths(cachePath, inputPath, modulePath, outputPath)

Arguments

cachePath

The default local directory in which to cache simulation outputs. If not specified, defaults to ~/SpaDES/cache.

inputPath

The default local directory in which to look for simulation inputs If not specified, defaults to ~/SpaDES/inputs.

modulePath

The default local directory where modules and data will be downloaded and stored. If not specified, defaults to ~/SpaDES/modules.

outputPath

The default local directory in which to save simulation outputs. If not specified, defaults to ~/SpaDES/outputs.

Value

Returns a named list of the user's default working directories. setPaths is invoked for the side effect of setting these directories.

Examples

# NOT RUN {
getPaths()                       ## returns the current default working paths
setPaths(cachePath = tempdir())  ## sets custom cachePath with other paths default
setPaths(inputPath = tempdir())  ## sets custom inputPath with other paths default
setPaths(modulePath = tempdir()) ## sets custom modulePath with other paths default
setPaths(outputPath = tempdir()) ## sets custom outputPath with other paths default
# }# NOT RUN {
# }