Skip to contents

Load the package configuration from a config file

Usage

metaproviz_load_config(path = NULL, title = "default", user = FALSE, ...)

Arguments

path

Path to the config file.

title

Load the config under this title. One config file might contain multple configurations, each identified by a title. If the title is not available the first section of the config file will be used.

user

Force to use the user level config even if a config file exists in the current directory. By default, the local config files have prioroty over the user level config.

...

Passed to yaml::yaml.load_file.

Value

Invisibly returns the config as a list.

Examples

if (FALSE) { # \dontrun{
# load the config from a custom config file:
metaproviz_load_config(path = 'my_custom_metaproviz_config.yml')
} # }