Skip to content

Commit

Permalink
change in test-if for ifn_4_plots_at_folder add strigr::str_pad
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianatovar committed Dec 18, 2024
1 parent ad87075 commit 6539044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-ifn.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skip_if(
# leads to missing data. This causes tests to fail, so we get the plots really
# present at the folder to do the tests
ifn_4_plots_at_folder <- suppressWarnings(show_plots_from(
"IFN", Sys.getenv("ifn_path"), provinces = 1:50 |> as.character(), versions = "ifn4"
"IFN", Sys.getenv("ifn_path"), provinces = 1:50 |> stringr::str_pad(width = 2, side = "left", pad = "0"), versions = "ifn4"
)) |>
dplyr::filter(
province_code %in% c(
Expand Down

0 comments on commit 6539044

Please sign in to comment.