-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_targets.R
More file actions
43 lines (32 loc) · 859 Bytes
/
_targets.R
File metadata and controls
43 lines (32 loc) · 859 Bytes
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
## Load your packages, e.g. library(targets).
source("./packages.R")
## Update these for a new doc push and release
### Data release version
data_release_version = "2026.4.17"
# Dashboard data location
dashboard_data_path = Sys.getenv("DASHBOARD_DATA_DIR")
raw_release_files = dir_ls(dashboard_data_path)
## Load your R files
lapply(list.files("./R", full.names = TRUE), source)
tar_assign({
csv_release_files = create_csv_release(
raw_release_files,
"release",
data_release_version
) |>
tar_file()
binary_release = create_binary_release(
csv_release_files,
"release",
"epi_swa_data_library.zip"
) |>
tar_file()
all_data = read_csv(
csv_release_files,
show_col_types = FALSE,
guess_max = 10000
) |>
tar_parquet()
# documentation site
website = tar_quarto(quiet = FALSE)
})