Many dartR functions have a plot.dir parameter which is used to save output to (e.g. ggplots as rds files)
With this functions users can set the working directory globally so it is used in all functions, without setting is explicitely.
The value for wd is stored in the r environment and if not set defaults to tempdir(). This script sets the default value.
Usage
gl.set.wd(wd = tempdir(), verbose = NULL)
Value
path the the working directory [set for all functions]
Arguments
wd
Set the path to the wd directory globally to be used by all functions if not set explicitely in the function.
verbose
Verbosity: 0, silent or fatal errors; 1, begin and end; 2,
progress log; 3, progress and results summary; 5, full report
[default 2, unless specified using gl.set.verbosity].