Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New drake_script() function #1282

Closed
2 tasks done
wlandau opened this issue Jun 22, 2020 · 0 comments
Closed
2 tasks done

New drake_script() function #1282

wlandau opened this issue Jun 22, 2020 · 0 comments
Assignees

Comments

@wlandau
Copy link
Member

wlandau commented Jun 22, 2020

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, ropensci-books/drake#160, and related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant