nm_dir: Get a directory name

View source: R/NMproject-options.R

nm_dirR Documentation

Get a directory name

Description

[Stable]

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.

Usage

nm_dir(name, ...)

Arguments

name

Character. Directory type. Should be either "scripts", "models" or "results".

...

Deprecated.

See Also

nm_default_dirs()

Examples

nm_dir("scripts") ## will return the path to the "scripts" directory
nm_dir("models")
nm_dir("results")

NMproject documentation built on Sept. 30, 2022, 1:06 a.m.