use_drake {drake} | R Documentation |
Use drake in a project
Description
Add top-level R script files to use drake
in your data analysis project. For details, read
https://books.ropensci.org/drake/projects.html
Usage
use_drake(open = interactive())
Arguments
open |
Logical, whether to open |
Details
Files written:
-
make.R
: a suggested main R script for batch mode. -
_drake.R
: a configuration R script for ther_*()
functions documented at # nolinthttps://books.ropensci.org/drake/projects.html#safer-interactivity
. # nolint Remarks:
There is nothing magical about the name,
make.R
. You can call it whatever you want.Other supporting scripts, such as
R/packages.R
,R/functions.R
, andR/plan.R
, are not included.You can find examples at
https://github.com/wlandau/drake-examples
and download examples withdrake_example()
(e.g.drake_example("main")
).
Examples
## Not run:
# use_drake(open = FALSE) # nolint
## End(Not run)
[Package drake version 7.13.10 Index]