Learn R Programming

DIZutils (version 0.0.13)

get_config: get_config helper function

Description

Internal function to read config files

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 config, Null otherwise.

Examples

Run this code
# NOT RUN {
utils_path <- tempdir()
config <- get_config(
  config_file = paste0(utils_path, "/MISC/email.yml"),
  config_key = "email"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab