diff --git a/scripts/ensemble.R b/scripts/ensemble.R index 05deedcf..172ff91a 100644 --- a/scripts/ensemble.R +++ b/scripts/ensemble.R @@ -19,16 +19,16 @@ library(purrr) library(jsonlite) ## ----setup_specifics, include=FALSE--------------------------------------------------- -print(file.path(local_path, "hub-config/tasks.json")) -dates_archive <- unlist(jsonlite::read_json(file.path(local_path, "hub-config/tasks.json"))$rounds[[1]]$model_tasks[[1]]$task_ids$origin_date$optional) +print(file.path("../hub-config/tasks.json")) +dates_archive <- unlist(jsonlite::read_json(file.path("../hub-config/tasks.json"))$rounds[[1]]$model_tasks[[1]]$task_ids$origin_date$optional) dates_archive <- dates_archive[as.Date(dates_archive) <= Sys.Date()] curr_origin_date <- as.Date(max(dates_archive, na.rm = TRUE)) ## ----prep_ens, include=FALSE-------------------------------------------------- -hub_path <- file.path(local_path, "hub-config") -print(file.path(hub_path)) +hub_path <- file.path("../hub-config") +print(hub_path) hub_con <- connect_hub(hub_path) ## ----load_data, include=FALSE--------------------------------------------------