Skip to content

Commit

Permalink
Zip the resources forecast folder
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykironde committed Dec 24, 2023
1 parent b7e35bb commit 61fec80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/fill_dir.R
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,8 @@ fill_models <- function (main = ".",
post_process <- function(main= ".") {
settings <- read_directory_settings(main = main)
zip_unzip("zip", forecasts_path(main = main))
resource_forecasts = file.path(main, settings$subdirectories$resources, settings$repository, settings$subdirectories$forecasts)
resource_forecasts = normalizePath(resource_forecasts, mustWork = FALSE)
zip_unzip("zip", forecast_path = resource_forecasts)
paste0("Zipping ", forecasts_path(main = main), " ", resource_forecasts)

Check warning on line 328 in R/fill_dir.R

View check run for this annotation

Codecov / codecov/patch

R/fill_dir.R#L325-L328

Added lines #L325 - L328 were not covered by tests
}

0 comments on commit 61fec80

Please sign in to comment.