- using R Under development (unstable) (2025-05-13 r88200)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-19) 14.2.0
GNU Fortran (Debian 14.2.0-19) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘ntdr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘ntdr’ version ‘0.4.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘ntdr’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘get_ntd.R’
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s/9s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/3s] ERROR
Running ‘testthat.R’ [2s/3s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(ntdr)
>
> test_check("ntdr")
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_ntd.R:4:3'): agency accepts character vector of length > 1 as input ──
Expected `get_ntd(agency = c("City of Madison", "Capital Area Transportation Authority"))` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
── Error ('test-get_ntd.R:15:3'): column names are correct ─────────────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `get_ntd()`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 3 was not closed cleanly: INTERNAL_ERROR (err 2)
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-get_ntd.R:15:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::colnames(get_ntd())
5. │ └─base::is.data.frame(x)
6. └─ntdr::get_ntd()
7. └─ntdr:::get_ntd_url(data_type)
8. ├─httr2::resp_body_html(...)
9. │ └─httr2:::check_response(resp)
10. │ └─httr2:::is_response(resp)
11. └─httr2::req_perform(...)
12. └─httr2:::handle_resp(req, resp, error_call = error_call)
13. └─rlang::cnd_signal(resp)
── Error ('test-get_ntd.R:38:3'): ntd variable has correct value ───────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `get_ntd()`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 5 was not closed cleanly: INTERNAL_ERROR (err 2)
Backtrace:
▆
1. └─ntdr::get_ntd() at test-get_ntd.R:38:3
2. └─ntdr:::get_ntd_url(data_type)
3. ├─httr2::resp_body_html(...)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(...)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─rlang::cnd_signal(resp)
── Error ('test-get_ntd.R:45:3'): returns a URL that starts right ──────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `eval(code, test_env)`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 7 was not closed cleanly: INTERNAL_ERROR (err 2)
Backtrace:
▆
1. ├─testthat::expect_match(get_ntd_url(), regexp = "^https://www.transit.dot.gov/sites/fta.dot.gov/files/") at test-get_ntd.R:45:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ntdr:::get_ntd_url()
5. ├─httr2::resp_body_html(...)
6. │ └─httr2:::check_response(resp)
7. │ └─httr2:::is_response(resp)
8. └─httr2::req_perform(...)
9. └─httr2:::handle_resp(req, resp, error_call = error_call)
10. └─rlang::cnd_signal(resp)
── Error ('test-get_ntd.R:49:3'): URL contains the right terms for different data_types ──
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `eval(code, test_env)`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 9 was not closed cleanly: INTERNAL_ERROR (err 2)
Backtrace:
▆
1. ├─testthat::expect_match(get_ntd_url("raw"), regexp = "Raw") at test-get_ntd.R:49:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ntdr:::get_ntd_url("raw")
5. ├─httr2::resp_body_html(...)
6. │ └─httr2:::check_response(resp)
7. │ └─httr2:::is_response(resp)
8. └─httr2::req_perform(...)
9. └─httr2:::handle_resp(req, resp, error_call = error_call)
10. └─rlang::cnd_signal(resp)
── Error ('test-get_ntd.R:60:3'): a specific ridership value is correct ────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `get_ntd(agency = "City of Madison", modes = "MB")`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 13 was not closed cleanly: INTERNAL_ERROR (err 2)
Backtrace:
▆
1. └─ntdr::get_ntd(agency = "City of Madison", modes = "MB") at test-get_ntd.R:60:3
2. └─ntdr:::get_ntd_url(data_type)
3. ├─httr2::resp_body_html(...)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(...)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─rlang::cnd_signal(resp)
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/2s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘ntdr.Rmd’ using rmarkdown
Quitting from ntdr.Rmd:34-38 [bare-get-ntd-call]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'ntdr.Rmd' failed with diagnostics:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Stream error in the HTTP/2 framing layer [www.transit.dot.gov]: HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
--- failed re-building ‘ntdr.Rmd’
SUMMARY: processing the following file failed:
‘ntdr.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [3s/5s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE