Running 'testthat.R' [27s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(kofdata)
  Loading required package: jsonlite
  Loading required package: httr
  > 
  > test_check("kofdata")
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 24 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
    'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
    'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
    'test_list_keys.R:22:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [datenservice.kof.ethz.ch]: SSL/TLS connection timeout
  Backtrace:
      ▆
   1. ├─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
   2. │ └─httr::GET(url, query = query)
   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(...)
  ── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
  `get_collection("some_nonexistent_set")` threw an error with unexpected message.
  Expected match: "The API responded"
  Actual message: "Timeout was reached [datenservice.kof.ethz.ch]: SSL/TLS connection timeout"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_get_collection.R:23:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─kofdata::get_collection("some_nonexistent_set")
    7. │ └─httr::GET(url, query = query)
    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. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 24 ]
  Error: Test failures
  Execution halted