get_config {DIZtools} | R Documentation |
Reads a config yaml file and return the value for a given key.
Description
Reads a config yaml file and return the value for a given key.
Usage
get_config(config_file, config_key)
Arguments
config_file |
A character string. The path to the config.yml-file containing the database configuration. |
config_key |
A character string. The name of the corresponding database. This string must be conform with the corresponding config section in the config.yml-file. |
Value
If successful it returns the value, Null otherwise.
Examples
utils_path <- tempdir()
config <- get_config(
config_file = paste0(utils_path, "/MISC/email.yml"),
config_key = "email"
)
[Package DIZtools version 1.0.1 Index]