Running ‘testthat.R’ [7s/367s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(canadacovid)
  > 
  > test_check("canadacovid")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 43 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-vaccination.R:3:3): get_vaccination_data works ──────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.covid19tracker.ca] Connection timeout after 10000 ms
  Backtrace:
      ▆
   1. └─canadacovid::get_vaccination_data() at test-vaccination.R:3:2
   2.   └─canadacovid::get_summary(split)
   3.     └─canadacovid::get_content_parsed(url)
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-vaccination.R:33:3): get_subregion_vaccination_data works ───────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.covid19tracker.ca] Connection timeout after 10000 ms
  Backtrace:
      ▆
   1. └─canadacovid::get_subregion_vaccination_data() at test-vaccination.R:33:2
   2.   └─canadacovid::get_content_parsed(url)
   3.     └─httr::GET(url)
   4.       └─httr:::request_perform(req, hu$handle$handle)
   5.         ├─httr:::request_fetch(req$output, req$url, handle)
   6.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-vaccine-age-groups.R:3:3): get_vaccine_age_groups works ─────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.covid19tracker.ca] Connection timeout after 10001 ms
  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. │     └─canadacovid (local) .f(.x[[i]], ...)
    6. │       └─canadacovid::get_content_parsed(url)
    7. │         └─httr::GET(url)
    8. │           └─httr:::request_perform(req, hu$handle$handle)
    9. │             ├─httr:::request_fetch(req$output, req$url, handle)
   10. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. │               └─curl::curl_fetch_memory(url, handle = handle)
   12. ├─dplyr::mutate(...)
   13. ├─tidyr::unnest(., .data$data)
   14. └─dplyr::mutate(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 43 ]
  Error: Test failures
  Execution halted