Learn R Programming

NMproject (version 0.6.9)

nm_dir: 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

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

Run the code above in your browser using DataLab