Connect and schedule pipelines
Connect and schedule pipelines
Value
A list containing
idthe pipeline ID that can be used by
depspipelineforked pipeline instance
target_namescopy of
namesdepend_oncopy of
depscuecopy of
cuestandalonecopy of
standalone
Active bindings
root_pathpath to the directory that contains pipelines and scheduler
collection_pathpath to the pipeline collections
pipeline_idspipeline ID codes
Methods
Method add_pipeline()
Add pipeline into the collection
Usage
PipelineCollections$add_pipeline(
x,
names = NULL,
deps = NULL,
pre_hook = NULL,
post_hook = NULL,
cue = c("always", "thorough", "never"),
search_paths = pipeline_root(),
standalone = TRUE,
hook_envir = parent.frame()
)Arguments
xa pipeline name (can be found via
pipeline_list), or aPipelineToolsnamespipeline targets to execute
depspipeline IDs to depend on; see 'Values' below
pre_hookfunction to run before the pipeline; the function needs two arguments: input map (can be edit in-place), and path to a directory that allows to store temporary files
post_hookfunction to run after the pipeline; the function needs two arguments: pipeline object, and path to a directory that allows to store intermediate results
cuewhether to always run dependence
search_pathswhere to search for pipeline if
xis a character; ignored whenxis a pipeline objectstandalonewhether the pipeline should be standalone, set to
TRUEif the same pipeline added multiple times should run independently; default is truehook_envirwhere to look for global environments if
pre_hookorpost_hookcontains global variables; default is the calling environment
Method run()
Run the collection of pipelines
Arguments
errorwhat to do when error occurs; default is
'error'throwing errors; other choices are'warning'and'ignore'.scheduler, .type, .as_promise, .async, ...passed to
pipeline_runrebuildwhether to re-build the pipeline; default is
NA( if the pipeline has been built before, then do not rebuild)