| Pipeline | R Documentation |
A Pipeline object is automatically constructed as calls to
make_*() are made. It stores the relationships between targets,
dependencies, and sources.
segmentsA 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 )
sourceThe path to an R script which makes the targets
targetsA character vector of paths to files
dependenciesA character vector of paths to files which the
targets depend on
packagesA character vector of names of packages which targets
depend on
envirThe environment in which to execute the source or recipe.
forceA 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_edgeAn 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 )
recipeA language object which, when evaluated, makes the targets
targetsA character vector of paths to files
dependenciesA character vector of paths to files which the
targets depend on
packagesA character vector of names of packages which targets
depend on
envirThe environment in which to execute the source or recipe.
forceA 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"))quietA logical determining whether or not messages are signaled
self
clean()Clean all targets
Pipeline$clean()
self
touch()Touch all targets, updating file modification time to current time. This is useful when you know your targets are all up-to-date but makepipe doesn't (e.g. after a negligible change was made to your source code).
Pipeline$touch()
self
annotate()Apply annotations to Pipeline
Pipeline$annotate(labels = NULL, notes = NULL)
labelsA named character vector mapping nodes in the Pipeline onto
labels to display beside them.
notesA 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
)directionThe direction the flowchart should go in
arrow_sizeThe arrowhead size
edge_styleThe arrow edge style
bend_sizeThe degree of rounding in the arrows (requires
edge_style=rounded)
fontThe name of a font to use
font_sizeThe font size
line_widthThe line width for arrows and box outlines
paddingThe amount of padding within boxes
spacingThe amount of spacing between boxes,
leadingThe amount of spacing between lines of text
strokeThe color of arrows, text, and box outlines
fill_arrowsWhether arrow heads are full triangles (TRUE) or
angled (FALSE)
gutterThe amount space to leave around the flowchart
edge_marginThe 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", ...)
fileFile to save HTML into
selfcontainedWhether 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.
backgroundText 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, ...)
fileFile to save the png into
widthImage width
heightImage height
...Arguments to pass to self$nomnoml()
self
save_text_summary()Save a text summary of the pipeline
Pipeline$save_text_summary(file)
fileFile to save text summary into
self
clone()The objects of this class are cloneable with this method.
Pipeline$clone(deep = FALSE)
deepWhether 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.