locdir {rdwd} | R Documentation |
local data directory
Description
This can be used to set a directory for DWD data across projects,
thus avoiding multiple downloads of the same file.
Set the default for all subsequent calls with options(rdwdlocdir="YOUR/PATH")
.
Currently, the dataDWD()
dir
defaults to a project specific folder at getwd.
In the future, this may change to locdir()
.
locdir()
is used especially for the website, local tests and examples.
Usage
locdir(dir = getOption("rdwdlocdir"), file = NULL, quiet = rdwdquiet())
Arguments
dir |
Path to data directory.
If |
file |
Optional: path(s) at |
quiet |
Logical: suppress tempdir warning?
DEFAULT: FALSE through |
Value
charstring (directory)
Author(s)
Berry Boessenkool, berry-b@gmx.de, Apr 2019, Jun 2021
See Also
Examples
locdir()
oldopt <- options(rdwdlocdir="~")
locdir()
stopifnot(locdir() == path.expand("~"))
options(oldopt) ; rm(oldopt)