get_config | R Documentation |
Reads a config yaml file and return the value for a given key.
get_config(config_file, config_key)
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. |
If successful it returns the value, Null otherwise.
utils_path <- tempdir()
config <- get_config(
config_file = paste0(utils_path, "/MISC/email.yml"),
config_key = "email"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.