We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bfb69 commit 3f24f3fCopy full SHA for 3f24f3f
R/update_hub_target_data.R
@@ -95,15 +95,21 @@ update_hub_target_data <- function(
95
}
96
97
if (nssp_update_local) {
98
- raw_nssp_data <- forecasttools::read_tabular(
99
- fs::path(
100
- base_hub_path,
101
- "auxiliary-data",
102
- "nssp-raw-data",
103
- "latest",
104
- ext = "csv"
+ nssp_file_path <- fs::path(
+ base_hub_path,
+ "auxiliary-data",
+ "nssp-raw-data",
+ "latest",
+ ext = "parquet"
+ )
105
+
106
+ if (!fs::file_exists(nssp_file_path)) {
107
+ cli::cli_abort(
108
+ glue::glue("Cannot find NSSP data file at {nssp_file_path}")
109
)
- ) |>
110
+ }
111
112
+ raw_nssp_data <- forecasttools::read_tabular(nssp_file_path) |>
113
dplyr::filter(.data$county == "All") |>
114
dplyr::select(
115
"week_end",
0 commit comments