Attach (and detach) the pipeline functions and configuration
Source:R/pipeline_attach.R
pipeline_attach.RdThese functions allow users to attach (and detach) the pipeline functions
and scenario to the R search path which can be useful during development.
They are attached as local:pipelinedevenv. Whether this is a good idea or
not is to be determined.
Usage
pipeline_attach(
scenario = NULL,
scenario_default = getOption("pipeline.scenario_default", "default"),
pipeline_dir = ".",
relative_config_file = getOption("pipeline.config_file", "config.R"),
relative_function_dir = getOption("pipeline.function_dir", "R"),
relative_output_dir = getOption("pipeline.output_dir", "output")
)
pipeline_detach()Arguments
- scenario
Configuration you wish to attach.
If
NULL, any configuration file (seeconfig_file) will be read in as is.Character input will be treated as configuration you wish to consider. In this case the configuration file will first be parsed looking for a named-list entry corresponding to the value of the
scenario_defaultargument. The chosen scenario is then layered on top of this default usingutils::modifyList().- scenario_default
The default scenario to consider.
If
configis not NULL, this represents the default scenario on which the specified scenarios are layered.- pipeline_dir
[character]The directory you wish to run the the pipeline relative to.
- relative_config_file
[character]The configuration file.
Must be a none-nested and given relative to
pipeline_dir.- relative_function_dir
[character]The directory to look for user defined pipeline functions.
Must be a none-nested and given relative to
pipeline_dir.- relative_output_dir
[character]The directory for output.
Must be a none-nested and given relative to
pipeline_dir.