-
Notifications
You must be signed in to change notification settings - Fork 0
/
_targets.R
69 lines (50 loc) · 1.06 KB
/
_targets.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
################################################################################
#
# Project build script
#
################################################################################
# Load packages (in packages.R) and load project-specific functions in R folder
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
# Set build options ------------------------------------------------------------
# Groups of targets ------------------------------------------------------------
## Sampling
spatial_sample <- tar_plan(
##
)
## Read raw data
raw_data <- tar_plan(
##
)
## Process data
processed_data <- tar_plan(
##
)
## Analysis
analysis <- tar_plan(
##
)
## Outputs
outputs <- tar_plan(
##
)
## Reports
reports <- tar_plan(
##
)
## Deploy targets
deploy <- tar_plan(
##
)
## Set seed
set.seed(1977)
# Concatenate targets ----------------------------------------------------------
list(
spatial_sample,
raw_data,
processed_data,
analysis,
outputs,
reports,
deploy
)