-
Notifications
You must be signed in to change notification settings - Fork 0
/
_interactive.R
28 lines (20 loc) · 864 Bytes
/
_interactive.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
library(targets)
library(tarchetypes)
library(future)
library(conflicted)
# Config ------------------------------------------------------------------
options(conflicts.policy = list(warn = FALSE),
clustermq.scheduler = "LOCAL",
timeout = 120, # for download.file when things take long to download
crayon.enabled = TRUE,
scipen = 100,
czso.dest_dir = "data-input/czso_data",
yaml.eval.expr = TRUE)
source("_targets_packages.R")
conflict_prefer("filter", "dplyr")
# Install packages {{future}}, {{future.callr}}, and {{future.batchtools}} to allow use_targets() to configure tar_make_future() options.
future::plan(multisession)
cnf <- config::get(config = "default")
names(cnf) <- paste0("c_", names(cnf))
list2env(cnf, envir = .GlobalEnv)
lapply(list.files("R", full.names = TRUE, recursive = TRUE), source)