Getters and setters for various injector configurations.

root_config

paths_config

maps_config

Format

A list of getters and setters for a configuration.

 unset()
 set(..., drop = TRUE)
 get(key)
 get_all()
 

Arguments

...

A (named) list of options.

key

A string (character vector of length one).

drop

A flag. Should previous options be dropped and replaced?

See also

define, get_configs, and reset.

Examples

#> [2017-06-21T21:58:19 UTC] Resetting modulr state ... OK
root_config$get_all()
#> [[1]] #> [1] "../inst/modules" #>
root_config$unset() root_config$get_all()
#> NULL
root_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" #>