drake_script | R Documentation |
_drake.R
script to the current working directory.A _drake.R
file is required for r_make()
and friends.
See the r_make()
help file for details.
drake_script(code = NULL)
code |
R code to put in |
Nothing.
## Not run:
isolate_example("contain side-effects", {
drake_script({
library(drake)
plan <- drake_plan(x = 1)
drake_config(plan, lock_cache = FALSE)
})
cat(readLines("_drake.R"), sep = "\n")
r_make()
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.