| PipelineCollections | R Documentation |
Connect and schedule pipelines
Connect and schedule pipelines
A list containing
idthe pipeline ID that can be used by deps
pipelineforked pipeline instance
target_namescopy of names
depend_oncopy of deps
cuecopy of cue
standalonecopy of standalone
verbosewhether to verbose the build
root_pathpath to the directory that contains pipelines and scheduler
collection_pathpath to the pipeline collections
pipeline_idspipeline ID codes
new()Constructor
PipelineCollections$new(root_path = NULL, overwrite = FALSE)
root_pathwhere to store the pipelines and intermediate results
overwritewhether to overwrite if root_path exists
add_pipeline()Add pipeline into the collection
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()
)xa pipeline name (can be found via pipeline_list),
or a PipelineTools
namespipeline 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 x is a
character; ignored when x is a pipeline object
standalonewhether the pipeline should be standalone, set to
TRUE if the same pipeline added multiple times should run
independently; default is true
hook_envirwhere to look for global environments if pre_hook
or post_hook contains global variables; default is the calling
environment
build_pipelines()Build pipelines and visualize
PipelineCollections$build_pipelines(visualize = TRUE)
visualizewhether to visualize the pipeline; default is true
run()Run the collection of pipelines
PipelineCollections$run(
error = c("error", "warning", "ignore"),
.scheduler = c("none", "future", "clustermq"),
.type = c("callr", "smart", "vanilla"),
.as_promise = FALSE,
.async = FALSE,
rebuild = NA,
...
)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_run
rebuildwhether to re-build the pipeline; default is NA (
if the pipeline has been built before, then do not rebuild)
get_scheduler()Get scheduler object
PipelineCollections$get_scheduler()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.