evaluate_plan | R Documentation |
Deprecated on 2019-05-16. Use drake_plan()
transformations instead. See
https://books.ropensci.org/drake/plans.html#large-plans
for the details.
evaluate_plan(
plan,
rules = NULL,
wildcard = NULL,
values = NULL,
expand = TRUE,
rename = expand,
trace = FALSE,
columns = "command",
sep = "_"
)
plan |
Workflow plan data frame, similar to one produced by
|
rules |
Named list with wildcards as names and vectors of
replacements
as values. This is a way to evaluate multiple wildcards at once.
When not |
wildcard |
Character scalar denoting a wildcard placeholder. |
values |
Vector of values to replace the wildcard
in the drake instructions. Will be treated as a character vector.
Must be the same length as |
expand |
If |
rename |
Logical, whether to rename the targets
based on the values supplied for the wildcards
(based on |
trace |
Logical, whether to add columns that trace the wildcard expansion process. These new columns indicate which targets were evaluated and with which wildcards. |
columns |
Character vector of names of columns to look for and evaluate the wildcards. |
sep |
Character scalar, separator for the names
of the new targets generated. For example, in
|
The commands in workflow plan data frames can have
wildcard symbols that can stand for datasets, parameters, function
arguments, etc. These wildcards can be evaluated over a set of
possible values using evaluate_plan()
.
Specify a single wildcard with the wildcard
and values
arguments. In each command, the text in
wildcard
will be replaced by each value in values
in turn. Specify multiple wildcards with the rules
argument,
which overrules wildcard
and values
if
not NULL
. Here, rules
should be a list with wildcards
as names and vectors of possible values as list elements.
A workflow plan data frame with the wildcards evaluated.
drake_plan()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.