Deprecated on 2019-05-16. Use drake_plan()
transformations instead. See
https://books.ropensci.org/drake/plans.html#large-plans
for the details.
Arguments
- args
A data frame (or better yet, a
tibble) of function arguments tofun. Here, the column names should be the names of the arguments offun, and each row ofargscorresponds to a call tofun.- fun
Name of a function to apply the arguments row-by-row. Supply a symbol if
character_onlyisFALSEand a character scalar otherwise.- id
Name of an optional column in
argsgiving the names of the targets. If not supplied, target names will be generated automatically.idshould be a symbol ifcharacter_onlyisFALSEand a character scalar otherwise.- character_only
Logical, whether to interpret the
funandidarguments as character scalars or symbols.- trace
Logical, whether to append the columns of
argsto the output workflow plan data frame. The added columns help "trace back" the original settings that went into building each target. Similar to thetraceargument ofdrake_plan().
Details
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.