locdir | R Documentation |
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.
locdir(dir = getOption("rdwdlocdir"), file = NULL, quiet = rdwdquiet())
dir |
Path to data directory.
If |
file |
Optional: path(s) at |
quiet |
Logical: suppress tempdir warning?
DEFAULT: FALSE through |
charstring (directory)
Berry Boessenkool, berry-b@gmx.de, Apr 2019, Jun 2021
runLocalTests()
locdir()
oldopt <- options(rdwdlocdir="~")
locdir()
stopifnot(locdir() == path.expand("~"))
options(oldopt) ; rm(oldopt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.