Running ‘testthat.R’ [1s/103s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(nycOpenData)
  > 
  > test_check("nycOpenData")
  Saving _problems/test-nyc_311-6.R
  Saving _problems/test-nyc_311_2010_2019-6.R
  Saving _problems/test-nyc_city_record-6.R
  Saving _problems/test-nyc_open_parking_camera_violations-6.R
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 2 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-nyc_311.R:6:5'): nyc_311 returns a tibble and respects limits ──
  Error: NYC Open Data request failed (network unavailable or API slow).
  Try again later or increase `timeout_sec`.
  
  Underlying error: Timeout was reached [data.cityofnewyork.us]:
  Connection timed out after 10002 milliseconds
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-nyc_311.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nycOpenData::nyc_311(limit = 2) at test-nyc_311.R:6:5
   4.   └─base::tryCatch(...)
   5.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.         └─value[[3L]](cond)
  ── Error ('test-nyc_311_2010_2019.R:6:5'): nyc_311_2010_2019 returns a tibble and respects limits ──
  Error: NYC Open Data request failed (network unavailable or API slow).
  Try again later or increase `timeout_sec`.
  
  Underlying error: Timeout was reached [data.cityofnewyork.us]:
  Connection timed out after 10000 milliseconds
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-nyc_311_2010_2019.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nycOpenData::nyc_311_2010_2019(limit = 2) at test-nyc_311_2010_2019.R:6:5
   4.   └─base::tryCatch(...)
   5.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.         └─value[[3L]](cond)
  ── Error ('test-nyc_city_record.R:6:5'): nyc_city_record returns a tibble and respects limits ──
  Error: NYC Open Data request failed (network unavailable or API slow).
  Try again later or increase `timeout_sec`.
  
  Underlying error: Timeout was reached [data.cityofnewyork.us]:
  Operation timed out after 30002 milliseconds with 0 bytes received
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-nyc_city_record.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nycOpenData::nyc_city_record(limit = 2) at test-nyc_city_record.R:6:5
   4.   └─nycOpenData:::.nyc_get_json(endpoint, query_list, timeout_sec = timeout_sec)
   5.     └─base::tryCatch(...)
   6.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.           └─value[[3L]](cond)
  ── Error ('test-nyc_open_parking_camera_violations.R:6:5'): nyc_open_parking_camera_violations returns a tibble and respects limits ──
  Error: NYC Open Data request failed (network unavailable or API slow).
  Try again later or increase `timeout_sec`.
  
  Underlying error: Timeout was reached [data.cityofnewyork.us]:
  Operation timed out after 30002 milliseconds with 0 bytes received
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-nyc_open_parking_camera_violations.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nycOpenData::nyc_open_parking_camera_violations(limit = 2) at test-nyc_open_parking_camera_violations.R:6:5
   4.   └─nycOpenData:::.nyc_get_json(endpoint, query_list, timeout_sec = timeout_sec)
   5.     └─base::tryCatch(...)
   6.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.           └─value[[3L]](cond)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 2 ]
  Error:
  ! Test failures.
  Execution halted