omnipath_load_config: Load the package configuration from a config file

omnipath_load_configR Documentation

Load the package configuration from a config file

Description

Load the package configuration from a config file

Load the coniguration of a certain package

Usage

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

load_config(
  path = NULL,
  title = "default",
  user = FALSE,
  pkg = "OmnipathR",
  ...
)

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.

pkg

Character: name of the package

Value

Invisibly returns the config as a list.

Examples

## Not run: 
# load the config from a custom config file:
omnipath_load_config(path = 'my_custom_omnipath_config.yml')

## End(Not run)


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.