Skip to contents

Resolved from getOption("npmatch.project"), then the NPMATCH_PROJECT environment variable. np_project_init() and np_project_use() set the option, so the fetch helpers and stage functions can default their paths into the run directory without the caller repeating it.

Usage

np_project_root()

Value

The project root path, or NA_character_ when none is active.

See also

np_project_use() to point the session at an existing run.

Examples

old <- options(npmatch.project = tempdir())
np_project_root()
#> [1] "C:\\Users\\jdlec\\AppData\\Local\\Temp\\Rtmp2dJHEO"
options(old)