an improved config::get
config_get.Rd
config_get behaves much like config::get. However, it improves upon its predecessor in the following ways:
handlers for custom YAML tags
allows YAML references
Usage
config_get(
...,
r_config_active = Sys.getenv("R_CONFIG_ACTIVE", "default"),
file = config_yml(),
merge.precedence = "override",
handlers = list(optenv = yaml_handler_optenv, with_env = yaml_handler_with_env)
)
Arguments
- ...
passed to purrr::pluck to extract components within the active config
- r_config_active
the configuration; defaults to R_CONFIG_ACTIVE
- file
the config file; defaults to config.yml
- merge.precedence
merge.precedence; defaults to "override" for YAML references
- handlers
a list of handlers for YAML tags