From 42eb1c84a9ecc44671fa1608e6437d31cc52b46e Mon Sep 17 00:00:00 2001 From: kjsato Date: Mon, 25 Mar 2024 12:23:53 -0400 Subject: [PATCH] modified some lines to use relative path related lines for test in ensemble.R --- scripts/ensemble.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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--------------------------------------------------