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.
keyA string (character vector of length one).
dropA flag. Should previous options be dropped and replaced?
define, get_configs, and reset.
reset()#> [2017-06-21T21:58:19 UTC] Resetting modulr state ... OKroot_config$get_all()#> [[1]] #> [1] "../inst/modules" #>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" #>