-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_targets.R
60 lines (57 loc) · 996 Bytes
/
_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
source("./packages.R")
lapply(list.files("./R", full.names = TRUE), source)
thesis_deps <-
get_thesis_deps()
list(
tar_map(
values = get_values(),
names = c("thesis_project", "experiment_number"),
tar_target(
plot,
get_plot(data)
),
tar_target(
results,
get_results(data)
),
tar_target(
descriptives,
get_descriptives(data, iv)
),
tar_file(
materials,
get_materials(thesis_project, experiment_number)
)
),
tar_target(
samuelson_distribution,
get_samuelson_distribution()
),
tar_target(
prospect_theory,
plot_prospect_theory()
),
tar_file(
input,
"index.Rmd"
),
tar_file(
config_file,
"_bookdown.yml"
),
tar_file(
deps,
unlist(thesis_deps)
),
tar_file(
thesis,
render_with_deps(
input = input,
config_file = config_file,
deps = c(
!!tar_knitr_deps_expr(thesis_deps$rmd),
deps
)
)
)
)