Running 'testthat.R' [228s]
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 ─────────────────────────────
  <purrr_error_indexed/rlang_error/error/condition>
  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 ─────────────────────────
  <purrr_error_indexed/rlang_error/error/condition>
  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 ───────
  <purrr_error_indexed/rlang_error/error/condition>
  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