Last updated on 2026-02-22 03:51:25 CET.
| Package | ERROR | OK |
|---|---|---|
| aebdata | 1 | 13 |
Current CRAN status: ERROR: 1, OK: 13
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/201s]
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(aebdata)
>
> test_check("aebdata")
Error : cannot open the connection
Error : cannot open the connection
Saving _problems/test-get-28.R
Saving _problems/test-get-33.R
Saving _problems/test-list-3.R
[ FAIL 3 | WARN 2 | SKIP 0 | PASS 20 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get.R:26:3'): get works ──────────────────────────────────────
Expected `get_series(series_id = c(215, 197))` to equal `list(`215` = rds$one, `197` = rds$multiple)`.
Differences:
`actual$215` is an S3 object of class <try-error>, a character vector
`expected$215` is an S3 object of class <data.frame>, a list
`actual$197` is an S3 object of class <try-error>, a character vector
`expected$197` is a list
── Error ('test-get.R:33:3'): get_csv works ────────────────────────────────────
Error in `open.connection(x, "rb")`: cannot open the connection
Backtrace:
▆
1. ├─testthat::expect_null(get_series_csv(162)) at test-get.R:33:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata:::get_series_csv(162)
5. ├─base::grep(...)
6. │ └─base::is.factor(x)
7. ├─rvest::html_attr(...)
8. │ └─xml2::xml_attr(x, name, default = default)
9. ├─rvest::html_elements(...)
10. ├─rvest::html_element(...)
11. ├─rvest::read_html(...)
12. └─xml2:::read_html.default(...)
13. ├─base::suppressWarnings(...)
14. │ └─base::withCallingHandlers(...)
15. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
16. └─xml2:::read_xml.character(...)
17. └─xml2:::read_xml.connection(...)
18. ├─base::open(x, "rb")
19. └─base::open.connection(x, "rb")
── Error ('test-list.R:3:3'): list works ───────────────────────────────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(list_themes(), rds$themes) at test-list.R:3:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::list_themes()
5. ├─base::do.call(...)
6. ├─base::lapply(...)
7. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
8. │ └─httr2:::check_response(resp)
9. │ └─httr2:::is_response(resp)
10. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─rlang::cnd_signal(resp)
[ FAIL 3 | WARN 2 | SKIP 0 | PASS 20 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.4
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘exploring-data.Rmd’ using rmarkdown
Quitting from exploring-data.Rmd:38-41 [list-series-knit]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/httr2_failure>
Error in `httr2::req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10002 milliseconds
---
Backtrace:
▆
1. ├─knitr::kable(list_series(theme_id = c(41, 49)), format = "html")
2. └─aebdata::list_series(theme_id = c(41, 49))
3. └─aebdata::list_themes()
4. ├─base::do.call(...)
5. ├─base::lapply(...)
6. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
7. │ └─httr2:::check_response(resp)
8. │ └─httr2:::is_response(resp)
9. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'exploring-data.Rmd' failed with diagnostics:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10002 milliseconds
--- failed re-building ‘exploring-data.Rmd’
SUMMARY: processing the following file failed:
‘exploring-data.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc