-
Notifications
You must be signed in to change notification settings - Fork 0
/
_drake.R
19 lines (17 loc) · 1.01 KB
/
_drake.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file serves the r_*() functions (e.g. r_make()) documented at
# https://ropenscilabs.github.io/drake-manual/projects.html#safer-interactivity # nolint
# and
# https://docs.ropensci.org/drake/reference/r_make.html
# Load your packages and supporting functions into your session.
# If you use supporting scripts like the ones below,
# you will need to supply them yourself. Examples:
# https://github.com/wlandau/drake-examples/tree/master/main/R
source('R/packages.R') # Loads packages, e.g. library(drake).
source('R/analyses.R') # Defines custom analysis code as a bunch of functions.
source('R/figures.R') # Defines custom figures code as a bunch of functions.
source('R/tables.R') # Defines custom tables code as a bunch of functions.
source('R/plan.R') # Creates drake plan.
# _drake.R must end with a call to drake_config().
# The arguments to drake_config() are basically the same as those to make().
# lock_envir = FALSE needed because of brms and stan
drake::drake_config(plan, verbose = 1L, lock_envir = FALSE)