Running 'testthat.R' [31s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(naptanr)
  > 
  > test_check("naptanr")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('testcall_naptan.R:4:1'): (code run outside of `test_that()`) ────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [naptan.api.dft.gov.uk]: SSL/TLS connection timeout
  Backtrace:
      ▆
   1. ├─naptanr::call_naptan() at testcall_naptan.R:4:1
   2. │ └─httr::GET(url)
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Error ('testcall_naptan_region.R:9:3'): Lookup can return results for a single region ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [naptan.api.dft.gov.uk]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at testcall_naptan_region.R:9:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─naptanr::call_naptan_region("west yorkshire")
    8. │ └─naptanr::call_naptan(atco = codes)
    9. │   └─httr::GET(url)
   10. │     └─httr:::request_perform(req, hu$handle$handle)
   11. │       ├─httr:::request_fetch(req$output, req$url, handle)
   12. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13. │         └─curl::curl_fetch_memory(url, handle = handle)
   14. └─curl:::raise_libcurl_error(...)
  ── Error ('testcall_naptan_region.R:16:3'): Lookup can return results for broad region keyword ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [naptan.api.dft.gov.uk]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_message(call_naptan_region("yorkshire"), "Returning data for area codes: 220 East Riding of Yorkshire, 320 North Yorkshire, 370 South Yorkshire, 450 West Yorkshire") at testcall_naptan_region.R:16:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─naptanr::call_naptan_region("yorkshire")
    8. │ └─naptanr::call_naptan(atco = codes)
    9. │   └─httr::GET(url)
   10. │     └─httr:::request_perform(req, hu$handle$handle)
   11. │       ├─httr:::request_fetch(req$output, req$url, handle)
   12. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13. │         └─curl::curl_fetch_memory(url, handle = handle)
   14. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted