Running ‘testthat.R’ [24s/69s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("rnrfa")
  > library("lintr")
  > 
  > if (!curl::has_internet()) {
  +   message("No internet, cannot run tests")
  + }else {
  +   test_check("rnrfa")
  + }
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 65 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-catalogue.R:5:3'): Output of catalogue function is expected to be at least 1539x20 ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10002 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─rnrfa::catalogue() at test-catalogue.R:5:3
   2.   └─rnrfa:::nrfa_api(webservice = "station-info", parameters)
   3.     └─httr::GET(url = url, query = parameters, ua)
   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-catalogue.R:12:3'): Check output of catalogue for Plynlimon area ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10003 ms: Timeout was reached
  Backtrace:
       ▆
    1. ├─testthat::expect_that(...) at test-catalogue.R:12:3
    2. │ └─testthat (local) condition(object)
    3. │   └─testthat::expect_equal(x, expected, ..., expected.label = label)
    4. │     └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │       └─rlang::eval_bare(expr, quo_get_env(quo))
    6. └─rnrfa::catalogue(...)
    7.   └─rnrfa:::nrfa_api(webservice = "station-info", parameters)
    8.     └─httr::GET(url = url, query = parameters, ua)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 65 ]
  Error: Test failures
  Execution halted