[Stable]

This allows organisations/individuals with their own directory to customize their directory structure

nm_default_dirs(dir_list)

Arguments

dir_list

Optional named list or vector. Names "scripts" and "models" must be present. The rest can be unnamed.

Value

if dir_list is missing, will return value of getOption("nm_default_dirs") otherwise will set option nm_default_dirs.

Examples


orig_list <- nm_default_dirs()
orig_list
#> $scripts
#> [1] "Scripts"
#> 
#> $models
#> [1] "Models"
#> 
#> $results
#> [1] "Results"
#> 
#> $source_data
#> [1] "SourceData"
#> 
#> $derived_data
#> [1] "DerivedData"
#> 

nm_default_dirs(list(
  models = "Models",
  scripts = "Scripts",
  results = "Results",
  source_data = "SourceData",
  derived_data = "Data"
))

nm_default_dirs()
#> $models
#> [1] "Models"
#> 
#> $scripts
#> [1] "Scripts"
#> 
#> $results
#> [1] "Results"
#> 
#> $source_data
#> [1] "SourceData"
#> 
#> $derived_data
#> [1] "Data"
#> 
nm_default_dirs(orig_list)