Wrapper functions to access the packages options for default working directories. Note: there is an active binding made to Paths, so a user can use Paths$cachePath for example instead of getPaths()$cachePath

.paths()

getPaths()

Paths

setPaths(
cachePath,
inputPath,
modulePath,
outputPath,
rasterPath,
silent = FALSE
)

## Arguments

cachePath The default local directory in which to cache simulation outputs. If not specified, defaults to getOption("reproducible.cachePath"). The default local directory in which to look for simulation inputs If not specified, defaults to getOption("spades.inputPath"). The default local directory where modules and data will be downloaded and stored. If not specified, defaults to getOption("spades.modulePath"). The default local directory in which to save simulation outputs. If not specified, defaults to getOption("spades.outputPath"). The default local directory in which to save transient raster files. If not specified, defaults to tmpDir. Important note: this location may not be cleaned up automatically, so be sure to monitor this directory and remove unnecessary temp files that may contribute to excessive disk usage. Logical. Should the messaging occur.

## Format

An object of class list of length 5.

## Value

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

Alex Chubaty

## Examples

if (FALSE) {
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