Last updated on 2026-03-30 08:53:21 CEST.
| Package | ERROR | OK |
|---|---|---|
| blscrapeR | 1 | 13 |
Current CRAN status: ERROR: 1, OK: 13
Version: 4.0.1
Check: examples
Result: ERROR
Running examples in ‘blscrapeR-Ex.R’ failed
The error most likely occurred in:
> ### Name: dateCast
> ### Title: Cast a date column to data frame returned by the bls_api()
> ### function
> ### Aliases: dateCast
>
> ### ** Examples
>
>
> ## Cast a date column to data frame returned by the bls_api() function.
> df <- bls_api("LAUCN040010000000005") %>%
+ dateCast()
Error in curl::curl_fetch_memory(url, handle = handle) :
Failure when receiving data from the peer [api.bls.gov]:
Recv failure: Connection reset by peer
Calls: %>% ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 4.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(blscrapeR)
>
> test_check("blscrapeR")
Saving _problems/test_bls_api-19.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_bls_api.R:19:1'): (code run outside of `test_that()`) ──────────
<curl_error_recv_error/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Failure when receiving data from the peer [api.bls.gov]:
Recv failure: Connection reset by peer
Backtrace:
▆
1. ├─httr::content(POST(base_url, body = payload, content_type_json())) at test_bls_api.R:19:1
2. │ ├─base::stopifnot(is.response(x))
3. │ └─httr:::is.response(x)
4. ├─httr::POST(base_url, body = payload, content_type_json())
5. │ └─httr:::request_perform(req, hu$handle$handle)
6. │ ├─httr:::request_fetch(req$output, req$url, handle)
7. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
8. │ └─curl::curl_fetch_memory(url, handle = handle)
9. └─curl:::raise_libcurl_error(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang