Write an example _drake.R
script to the current working directory.
Source: R/drake_script.R
drake_script.Rd
Examples
if (FALSE) { # \dontrun{
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()
})
} # }