setPaths | R Documentation |
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,
scratchPath,
terraPath,
silent = FALSE
)
cachePath |
The default local directory in which to cache simulation outputs.
If not specified, defaults to |
inputPath |
The default local directory in which to look for simulation inputs
If not specified, defaults to |
modulePath |
The default local directory where modules and data will be
downloaded and stored.
If not specified, defaults to |
outputPath |
The default local directory in which to save simulation outputs.
If not specified, defaults to |
rasterPath |
The default local directory in which to save transient raster files.
If not specified, defaults to
|
scratchPath |
The default local directory in which to save transient files.
If not specified, defaults to |
terraPath |
The default local directory in which to save transient |
silent |
Logical. Should the messaging occur. |
An object of class list
of length 7.
getPaths
returns a named list of the user's default working directories.
setPaths
is invoked for the side effect of setting these directories.
Alex Chubaty
getPaths() ## returns the current default working paths
## set individual custom paths
setPaths(cachePath = file.path(tempdir(), "cache"))
setPaths(inputPath = file.path(tempdir(), "inputs"))
setPaths(modulePath = file.path(tempdir(), "modules"))
setPaths(outputPath = file.path(tempdir(), "outputs"))
setPaths(scratchPath = file.path(tempdir(), "scratch"))
# NOTE: on loading and attaching SpaDES.core,
# an active binding is made to "Paths"
getPaths()
Paths ## same as getPaths() above
setPaths(outputPath = tempdir())
Paths # shows change
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.