Skip to content

Commit 368f8af

Browse files
committed
wip: production pipeline
1 parent be5084c commit 368f8af

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ scripts/**.html
99
nohup.out
1010
run.Rout
1111
tmp.R
12+
reports/

scripts/covid_hosp_prod.R

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ get_exclusions <- function(date, exclusions_json = here::here("scripts", "geo_ex
2323
forecast_generation_date <- as.character(seq.Date(as.Date("2024-01-01"), Sys.Date(), by = "1 week"))
2424
geo_exclusions <- Vectorize(get_exclusions)(forecast_generation_date)
2525

26-
tib1 <- tidyr::expand_grid(
27-
tibble(
28-
forecast_generation_date = forecast_generation_date,
29-
geo_exclusions = geo_exclusions
30-
)
31-
)
32-
3326
rlang::list2(
3427
tar_target(
3528
aheads,
@@ -38,7 +31,12 @@ rlang::list2(
3831
}
3932
),
4033
tar_map(
41-
values = tib1,
34+
values = tidyr::expand_grid(
35+
tibble(
36+
forecast_generation_date = forecast_generation_date,
37+
geo_exclusions = geo_exclusions
38+
)
39+
),
4240
names = "forecast_generation_date",
4341
tar_target(
4442
hhs_latest_data,

0 commit comments

Comments
 (0)