ropensci / drake

An R-focused pipeline toolkit for reproducibility and high-performance computing
https://docs.ropensci.org/drake
GNU General Public License v3.0
1.34k stars 128 forks source link

New drake_script() function #1282

Closed wlandau closed 4 years ago

wlandau commented 4 years ago

Prework

Proposal

i propose a new drake_script() function to write a _drake.R file. Example usage:

drake_script({
  source("R/packages.R")
  source("R/functions.R")
  source("R/plan.R")
  drake_config(plan)
})

This could help users transition to r_make(), as well as help implement #1281, https://github.com/ropensci-books/drake/issues/160, and related issues.