Pipeline | R Documentation |
A Pipeline object is automatically constructed as calls to
make_*()
are made. It stores the relationships between targets,
dependencies, and sources.
segments
A list of Segment
objects
add_source_segment()
Add an edge to edges
Add any nodes in private$edges
that are missing from
private$nodes
into private$nodes
Reconstruct Pipeline edges from Segment edges. Called primarily to update outofdateness
Add a pipeline segment corresponding to a make_with_source()
call
Pipeline$add_source_segment( source, targets, dependencies, packages, envir, force )
source
The path to an R script which makes the targets
targets
A character vector of paths to files
dependencies
A character vector of paths to files which the
targets
depend on
packages
A character vector of names of packages which targets
depend on
envir
The environment in which to execute the source
or recipe
.
force
A logical determining whether or not execution of the source
or recipe
will be forced (i.e. happen whether or not the targets are
out-of-date)
new_edge
An data.frame constructed with new_edge()
The SegmentSource
added to the Pipeline
add_recipe_segment()
Add a pipeline segment corresponding to a make_with_recipe()
call
Pipeline$add_recipe_segment( recipe, targets, dependencies, packages, envir, force )
recipe
A language object which, when evaluated, makes the targets
targets
A character vector of paths to files
dependencies
A character vector of paths to files which the
targets
depend on
packages
A character vector of names of packages which targets
depend on
envir
The environment in which to execute the source
or recipe
.
force
A logical determining whether or not execution of the source
or recipe
will be forced (i.e. happen whether or not the targets are
out-of-date)
The SegmentRecipe
added to the Pipeline
build()
Build all targets
Pipeline$build(quiet = getOption("makepipe.quiet"))
quiet
A logical determining whether or not messages are signaled
self
clean()
Clean all targets
Pipeline$clean()
self
annotate()
Apply annotations to Pipeline
Pipeline$annotate(labels = NULL, notes = NULL)
labels
A named character vector mapping nodes in the Pipeline
onto
labels to display beside them.
notes
A named character vector mapping nodes in the Pipeline
onto
notes to display on beside the labels (nomnoml) or as tooltips (visNetwork).
refresh()
Refresh Pipeline to check outofdateness
Pipeline$refresh()
nomnoml()
Display the pipeline with nomnoml
Pipeline$nomnoml( direction = c("down", "right"), arrow_size = 1, edge_style = c("hard", "rounded"), bend_size = 0.3, font = "Courier", font_size = 12, line_width = 3, padding = 16, spacing = 40, leading = 1.25, stroke = "#33322E", fill_arrows = FALSE, gutter = 5, edge_margin = 0 )
direction
The direction the flowchart should go in
arrow_size
The arrowhead size
edge_style
The arrow edge style
bend_size
The degree of rounding in the arrows (requires
edge_style=rounded
)
font
The name of a font to use
font_size
The font size
line_width
The line width for arrows and box outlines
padding
The amount of padding within boxes
spacing
The amount of spacing between boxes,
leading
The amount of spacing between lines of text
stroke
The color of arrows, text, and box outlines
fill_arrows
Whether arrow heads are full triangles (TRUE
) or
angled (FALSE
)
gutter
The amount space to leave around the flowchart
edge_margin
The amount of space to leave between boxes and arrows
self
visnetwork()
Display the pipeline with nomnoml
Pipeline$visnetwork(...)
...
Arguments (other than nodes
and edges
) to pass to
visNetwork::visNetwork()
self
text_summary()
Display a text summary of the pipeline
Pipeline$text_summary()
self
print()
Display
Pipeline$print(...)
...
Arguments (other than nodes
and edges
) to pass to
visNetwork::visNetwork()
self
save_visnetwork()
Save pipeline visNetwork
Pipeline$save_visnetwork(file, selfcontained = TRUE, background = "white", ...)
file
File to save HTML into
selfcontained
Whether to save the HTML as a single self-contained file (with external resources base64 encoded) or a file with external resources placed in an adjacent directory.
background
Text string giving the html background color of the widget. Defaults to white.
...
Arguments (other than nodes
and edges
) to pass to
visNetwork::visNetwork()
self
save_nomnoml()
Save pipeline nomnoml
Pipeline$save_nomnoml(file, width = NULL, height = NULL, ...)
file
File to save the png into
width
Image width
height
Image height
...
Arguments to pass to self$nomnoml()
self
save_text_summary()
Save a text summary of the pipeline
Pipeline$save_text_summary(file)
file
File to save text summary into
self
clone()
The objects of this class are cloneable with this method.
Pipeline$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other pipeline:
pipeline-accessors
,
pipeline-vis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.