@@ -26,9 +26,16 @@ suppressPackageStartupMessages(source(here::here("R", "load_all.R")))
2626# )
2727# # Save to disk
2828# saveRDS(scorecards, "exploration-scorecards-2023-10-04.RDS")
29- tar_project <- Sys.getenv(" TAR_PROJECT" , " flu_hosp_prod" )
29+
30+ # This is TAR_RUN_PROJECT and not TAR_PROJECT, because the latter gets
31+ # overwritten by the environment variable of the same name in the shell that
32+ # runs this script.
33+ tar_project <- Sys.getenv(" TAR_RUN_PROJECT" , " flu_hosp_prod" )
34+ # Where to place files in S3 (mostly unused)
3035aws_s3_prefix <- Sys.getenv(" AWS_S3_PREFIX" , " exploration" ) %> % paste0(" /" , tar_project )
36+ # Where to place flu forecasts
3137flu_submission_directory <- Sys.getenv(" FLU_SUBMISSION_DIRECTORY" , " cache" )
38+ # Where to place covid forecasts
3239covid_submission_directory <- Sys.getenv(" COVID_SUBMISSION_DIRECTORY" , " cache" )
3340cli :: cli_inform(
3441 c(
@@ -41,7 +48,7 @@ cli::cli_inform(
4148)
4249
4350
44- # targets needs the output dir to already exist.
51+ # Targets needs the output dir to already exist.
4552store_dir <- tar_path_store()
4653if (! dir.exists(store_dir )) dir.create(store_dir )
4754
@@ -70,6 +77,5 @@ restart_loop <- function() {
7077
7178tar_make(
7279 store = tar_config_get(" store" , project = tar_project ),
73- script = tar_config_get(" script" , project = tar_project ),
74- use_crew = TRUE
80+ script = tar_config_get(" script" , project = tar_project )
7581)
0 commit comments