Getters and setters for various injector configurations.
root_config paths_config maps_config
A list of getters and setters for a configuration.
unset() set(..., drop = TRUE) get(key) get_all()
...
A (named) list of options.
key
A string (character vector of length one).
drop
A flag. Should previous options be dropped and replaced?
define
, get_configs
, and reset
.
reset()#> [2018-12-02T17:13:56 CET] Resetting modulr state ... OKroot_config$get_all()#> [[1]] #> [1] "." "modules" #> [3] "module" "libs" #> [5] "lib" "/home/aclemen1/.modulr" #> [7] "/opt/R/3.2.5/lib64/R/etc/modulr.d" #>root_config$unset() root_config$get_all()#> NULLroot_config$set(c("my_modules")) root_config$get_all()#> [[1]] #> [1] "my_modules" #>root_config$set(c("my_great_modules"), drop = FALSE) root_config$get_all()#> [[1]] #> [1] "my_modules" #>