Skip to contents

Resolve standard project paths

Usage

morie_paths(project_root = NULL)

Arguments

project_root

Project root directory. If NULL, inferred from the current working directory.

Value

Named list of key paths.

Examples

tryCatch(morie_paths(),
  error = function(e) message("not inside a morie project tree")
)
#> $project_root
#> [1] "/home/runner/work/rmorie/rmorie"
#> 
#> $data_dir
#> [1] "/home/runner/work/rmorie/rmorie/data"
#> 
#> $cache_dir
#> [1] "/home/runner/work/rmorie/rmorie/data/cache"
#> 
#> $datasets_dir
#> [1] "/home/runner/work/rmorie/rmorie/data/datasets"
#> 
#> $outputs_dir
#> [1] "/home/runner/work/rmorie/rmorie/data/manifest/outputs"
#> 
#> $outputs_manifest
#> [1] "/home/runner/work/rmorie/rmorie/data/manifest/outputs_manifest.csv"
#> 
#> $rtests_dir
#> [1] "/home/runner/work/rmorie/rmorie/libexec/config/tests/rtests"
#> 
#> $pytests_dir
#> [1] "/home/runner/work/rmorie/rmorie/libexec/config/tests/pytests"
#> 
#> $tools_dir
#> [1] "/home/runner/work/rmorie/rmorie/libexec/config/tools"
#> 
#> $docs_dir
#> [1] "/home/runner/work/rmorie/rmorie/docs"
#>