The base directory is obtained by getOption("path_trendecon"). If the option is not present, the base directory defaults to the parent directory of the current working directory. To set the option, run

path_trendecon(...)

Arguments

...

Character vector of subdirectories relative to the base directory.

Value

The full path to the base directory, or (if provided as a parameter), the path to the subdirectory.

Details

options(path_trendecon = "~/path/to/base/dir")

See also

R.utils::setOption

Examples

path_trendecon("data-raw")
#> /Users/runner/work/trendecon/trendecon/docs/reference/data-raw