| SegmentRecipe | 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.
makepipe::Segment -> SegmentRecipe
recipeA chunk of R code which makes the targets
new()Initialise a new Segment
SegmentRecipe$new( id, recipe, targets, dependencies, packages, envir, force, executed, result, execution_time )
idAn integer that uniquely identifies the segment
recipeA chunk of R code 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 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
update_result()Update the Segment with new execution information
SegmentRecipe$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
execute()Execute the Segment
SegmentRecipe$execute(envir = NULL, quiet = getOption("makepipe.quiet"), ...)envirThe environment in which to execute the instructions.
quietA logical determining whether or not messages are signaled
...Additional parameters to pass to base::eval()
clone()The objects of this class are cloneable with this method.
SegmentRecipe$clone(deep = FALSE)
deepWhether to make a deep clone.
Other segment:
SegmentSource,
Segment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.