gl.set.wd {dartR.base} | R Documentation |
Sets the default working directory
Description
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)
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]. |
Value
path the the working directory [set for all functions]
Author(s)
Custodian: Bernd Gruber (Post to https://groups.google.com/d/forum/dartr)
See Also
Other environment:
gl.check.verbosity()
,
gl.check.wd()
,
gl.print.history()
,
theme_dartR()
Examples
#set to current working directory
wd <- gl.set.wd(wd=getwd())