generated from OxfordIHTM/ihtm-targets-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_targets.R
51 lines (30 loc) · 956 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
################################################################################
#
# Overall workflow
#
################################################################################
## Load libraries and custom functions ----
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
## Build options ----
pact_client <- pact_client_set()
## Create targets and list targets objects ----
### Data ingest and processing targets - Figsahre ----
source("_targets_data_figshare.R")
### Data ingest and processing targets - website ----
source("_targets_data_website.R")
### Visualisation targets ----
source("_targets_visualisation.R")
### Analysis targets
analysis_targets <- tar_plan(
)
### Output targets
output_targets <- tar_plan(
)
### Reporting targets
source("_targets_report.R")
### Deploy targets
deploy_targets <- tar_plan(
)
## List targets
all_targets()