| Segment | R Documentation |
A Segment object is automatically constructed and attached to
the Pipeline when a call to make_*() is made. It stores the relationships
between targets, dependencies, and sources.
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
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)
envirThe environment in which to execute the instructions.
resultAn object, whatever is returned by executing the instructions
executedA logical, whether or not the instructions were executed
execution_timeA difftime, the time taken to execute the instructions
labelA short label for the segment
noteA description of what the segment does
edgesGet edges connecting the dependencies, instructions, and targets
nodesGet nodes corresponding to dependencies, instructions, and targets
text_summaryA plain text summary of the Segment
new()Initialise a new Segment
Segment$new( id, targets, dependencies, packages, envir, force, executed, result, execution_time )
idAn integer that uniquely identifies the segment
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 instructions.
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)
executedA logical, whether or not the instructions were executed
resultAn object, whatever is returned by executing the instructions
execution_timeA difftime, the time taken to execute the instructions
print()Printing method
Segment$print()
update_result()Update the Segment with new execution information
Segment$update_result(executed, execution_time, result)
executedA logical, whether or not the instructions were executed
execution_timeA difftime, the time taken to execute the instructions
resultAn object, whatever is returned by executing the instructions
annotate()Apply annotations to Segment
Segment$annotate(label = NULL, note = NULL)
labelA short label for the segment
noteA description of what the segment does
clone()The objects of this class are cloneable with this method.
Segment$clone(deep = FALSE)
deepWhether to make a deep clone.
Other segment:
SegmentRecipe,
SegmentSource
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.