Deprecated on 2019-05-16. Use drake_plan()
transformations instead. See
https://ropenscilabs.github.io/drake-manual/plans.html#large-plans
for the details.
map_plan(args, fun, id = "id", character_only = FALSE, trace = FALSE)
A data frame (or better yet, a tibble
)
of function arguments to fun
.
Here, the column names should be the names of the arguments
of fun
, and each row of args
corresponds to a
call to fun
.
Name of a function to apply the arguments
row-by-row. Supply a symbol if character_only
is
FALSE
and a character scalar otherwise.
Name of an optional column in args
giving the names of the targets. If not supplied,
target names will be generated automatically.
id
should be a symbol if character_only
is FALSE
and a character scalar otherwise.
Logical, whether to interpret
the fun
and id
arguments as character scalars or symbols.
Logical, whether to append the columns of args
to the output workflow plan data frame. The added columns
help "trace back" the original settings that went into building
each target. Similar to the trace
argument of drake_plan()
.
A workflow plan data frame.
map_plan()
is like base::Map()
:
it takes a function name and a grid of arguments, and
writes out all the commands calls to apply the function to
each row of arguments.