SegmentSource | 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
-> SegmentSource
source
The path to an R script which makes the targets
new()
Initialise a new Segment
SegmentSource$new( id, source, targets, dependencies, packages, envir, force, executed, result, execution_time )
id
An integer that uniquely identifies the segment
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 instructions.
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)
executed
A logical, whether or not the instructions were executed
result
An object, whatever is returned by executing the instructions
execution_time
A difftime, the time taken to execute the instructions
update_result()
Update the Segment with new execution information
SegmentSource$update_result(executed, execution_time, result)
executed
A logical, whether or not the instructions were executed
execution_time
A difftime, the time taken to execute the instructions
result
An object, whatever is returned by executing the instructions
execute()
Execute the Segment
SegmentSource$execute(envir = NULL, quiet = getOption("makepipe.quiet"), ...)
envir
The environment in which to execute the instructions.
quiet
A logical determining whether or not messages are signaled
...
Additional parameters to pass to base::source()
clone()
The objects of this class are cloneable with this method.
SegmentSource$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other segment:
SegmentRecipe
,
Segment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.