* using log directory ‘/data/gannet/ripley/R/packages/tests-OpenBLAS/canadacovid.Rcheck’ * using R Under development (unstable) (2023-04-14 r84259) * using platform: x86_64-pc-linux-gnu (64-bit) * R was compiled by gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) GNU Fortran (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘canadacovid/DESCRIPTION’ ... OK * this is package ‘canadacovid’ version ‘0.3.4’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘canadacovid’ can be installed ... [9s/27s] OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [11s/25s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in ‘canadacovid-Ex.R’ failed The error most likely occurred in: > ### Name: get_provinces > ### Title: Get provinces and territories > ### Aliases: get_provinces > > ### ** Examples > > > get_provinces() Error: API requested failed with code 500 Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [11s/236s] [12s/237s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(canadacovid) > > test_check("canadacovid") [ FAIL 6 | WARN 0 | SKIP 0 | PASS 23 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-provinces.R:3:3'): get_provinces ─────────────────────────────── Error: API requested failed with code 500 Backtrace: ▆ 1. └─canadacovid::get_provinces() at test-provinces.R:3:2 2. └─canadacovid::get_content_parsed(url) ── Error ('test-regions.R:3:3'): get_regions works ───────────────────────────── Error in `map(.x, .f, ...)`: i In index: 1. Caused by error: ! API requested failed with code 500 Backtrace: ▆ 1. ├─canadacovid::get_regions() at test-regions.R:3:2 2. │ └─purrr::map_dfr(...) 3. │ └─purrr::map(.x, .f, ...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─canadacovid (local) .f(.x[[i]], ...) 9. │ └─canadacovid::get_content_parsed(url) 10. │ └─base::stop(...) 11. └─base::.handleSimpleError(...) 12. └─purrr (local) h(simpleError(msg, call)) 13. └─cli::cli_abort(...) 14. └─rlang::abort(...) ── Error ('test-regions.R:19:3'): get_subregions works ───────────────────────── Error in `map(.x, .f, ...)`: i In index: 1. Caused by error: ! API requested failed with code 500 Backtrace: ▆ 1. ├─canadacovid::get_subregions() at test-regions.R:19:2 2. │ └─purrr::map_dfr(...) 3. │ └─purrr::map(.x, .f, ...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─canadacovid (local) .f(.x[[i]], ...) 9. │ └─canadacovid::get_content_parsed(url) 10. │ └─base::stop(...) 11. └─base::.handleSimpleError(...) 12. └─purrr (local) h(simpleError(msg, call)) 13. └─cli::cli_abort(...) 14. └─rlang::abort(...) ── Error ('test-reports.R:13:3'): get_reports works ──────────────────────────── Error: API requested failed with code 500 Backtrace: ▆ 1. └─canadacovid::get_provinces() at test-reports.R:13:2 2. └─canadacovid::get_content_parsed(url) ── Error ('test-vaccination.R:28:3'): get_subregion_vaccination_data works ───── Error: API requested failed with code 500 Backtrace: ▆ 1. └─canadacovid::get_subregion_vaccination_data() at test-vaccination.R:28:2 2. └─canadacovid::get_content_parsed(url) ── Error ('test-vaccine-age-groups.R:3:3'): get_vaccine_age_groups works ─────── Error in `map(.x, .f, ...)`: i In index: 1. Caused by error: ! API requested failed with code 500 Backtrace: ▆ 1. ├─canadacovid::get_vaccine_age_groups() at test-vaccine-age-groups.R:3:2 2. │ ├─... %>% ... 3. │ └─purrr::map_dfr(...) 4. │ └─purrr::map(.x, .f, ...) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ ├─purrr:::with_indexed_errors(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ ├─purrr:::call_with_cleanup(...) 9. │ └─canadacovid (local) .f(.x[[i]], ...) 10. │ └─canadacovid::get_content_parsed(url) 11. │ └─base::stop(...) 12. ├─dplyr::mutate(...) 13. ├─tidyr::unnest(., .data$data) 14. ├─dplyr::mutate(...) 15. └─base::.handleSimpleError(...) 16. └─purrr (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) [ FAIL 6 | WARN 0 | SKIP 0 | PASS 23 ] Error: Test failures Execution halted * checking PDF version of manual ... [7s/18s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/data/gannet/ripley/R/packages/tests-OpenBLAS/canadacovid.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 7:07.83, 73.02 + 10.20