Get subdirectory (relative) paths in a configuration independent way. The
configuration can be modified with nm_default_dirs()
. Can be useful in
scripts, where you need to refer to locations of model files or output files.
nm_dir(name, ...)
Character. Directory type. Should be either "scripts"
,
"models"
or "results"
.
Deprecated.
nm_dir("scripts") ## will return the path to the "scripts" directory
#> [1] "Scripts"
nm_dir("models")
#> [1] "Models"
nm_dir("results")
#> [1] "Results"