Last updated on 2026-01-31 07:50:12 CET.
| Package | ERROR | OK |
|---|---|---|
| nycOpenData | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1.5
Check: examples
Result: ERROR
Running examples in ‘nycOpenData-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: nyc_school_discharge_report_2015_2018
> ### Title: 2015-2018 School Closure Discharge Reporting
> ### Aliases: nyc_school_discharge_report_2015_2018
>
> ### ** Examples
>
> # Quick example (fetch 2 rows)
> small_sample <- nyc_school_discharge_report_2015_2018(limit = 2)
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached [data.cityofnewyork.us]:
Connection timed out after 10001 milliseconds
Calls: nyc_school_discharge_report_2015_2018 ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.5
Check: tests
Result: ERROR
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
Flavor: r-devel-linux-x86_64-debian-gcc