plan
Turns a named collection of command/target pairs into
a workflow plan data frame for make
and
check
.
plan(..., list = character(0), file_targets = FALSE,
strings_in_dots = c("filenames", "literals"))
commands named by the targets they generate.
Recall that drake uses single quotes to denote external files
and double-quoted strings as ordinary strings.
Use the strings_in_dots
argument to control the
quoting in ...
.
character vector of commands named by the targets they generate.
logical. If TRUE
, targets are single-quoted
to tell drake that these are external files that should be expected
as output in the next call to make()
.
character scalar. If "filenames"
,
all character strings in ...
will be treated as names of file
dependencies (single-quoted). If "literals"
, all
character strings in ...
will be treated as ordinary
strings, not dependencies of any sort (double-quoted).
Because of R's automatic parsing/deparsing behavior,
strings in ...
cannot simply be left alone.
data frame of targets and command
A workflow plan data frame is a data frame
with a target
column and a command
column.
Targets are the objects and files that drake generates,
and commands are the pieces of R code that produce them.
For file inputs and targets, drake uses single quotes.
Double quotes are reserved for ordinary strings.
The distinction is important because drake thinks about
how files, objects, targets, etc. depend on each other.
Quotes in the list
argument are left alone,
but R messes with quotes when it parses the freeform
arguments in ...
, so use the strings_in_dots
argument to control the quoting in ...
.
link{check}
, make
,