Running 'testthat.R' [13s]
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()`) ────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: naptan.api.dft.gov.uk
  Backtrace:
      ▆
   1. └─naptanr::call_naptan() at testcall_naptan.R:4:0
   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)
  ── Error ('testcall_naptan_region.R:9:3'): Lookup can return results for a single region ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: naptan.api.dft.gov.uk
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at testcall_naptan_region.R:9:2
    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)
  ── Error ('testcall_naptan_region.R:16:3'): Lookup can return results for broad region keyword ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [naptan.api.dft.gov.uk] Resolving timed out after 10011 milliseconds
  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:2
    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)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted