powered by
Reads a config yaml file and return the value for a given key.
get_config(config_file, config_key)
If successful it returns the value, Null otherwise.
A character string. The path to the config.yml-file containing the database configuration.
A character string. The name of the corresponding database. This string must be conform with the corresponding config section in the config.yml-file.
# \donttest{ utils_path <- tempdir() config <- get_config( config_file = paste0(utils_path, "/MISC/email.yml"), config_key = "email" )# }
Run the code above in your browser using DataLab