- using R Under development (unstable) (2025-12-21 r89216)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘aebdata/DESCRIPTION’ ... OK
- this is package ‘aebdata’ version ‘0.1.4’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] 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 whether package ‘aebdata’ 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 ... OK
- 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [3s/4s] 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/50s] OK
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
get_series 0.255 0.008 10.275
search_series 0.059 0.009 18.699
list_series 0.064 0.000 10.124
list_themes 0.025 0.008 10.064
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/194s] ERROR
Running ‘testthat.R’ [2s/193s]
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")
Saving _problems/test-get-11.R
Saving _problems/test-get-20.R
Saving _problems/test-get-25.R
Saving _problems/test-get-33.R
Saving _problems/test-list-3.R
Saving _problems/test-list-15.R
Saving _problems/test-search-4.R
Saving _problems/test-search-11.R
Saving _problems/test-search-18.R
Saving _problems/test-search-25.R
Saving _problems/test-utils-2.R
[ FAIL 11 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get.R:11:3'): wrong parameters ─────────────────────────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10003 milliseconds
Backtrace:
▆
1. ├─testthat::expect_warning(get_series(series_id = c(1, 215))) at test-get.R:11:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─aebdata::get_series(series_id = c(1, 215))
8. ├─base::do.call(...)
9. ├─base::lapply(...)
10. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series")))
11. │ └─httr2:::check_response(resp)
12. │ └─httr2:::is_response(resp)
13. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))
14. └─httr2:::handle_resp(req, resp, error_call = error_call)
15. └─rlang::cnd_signal(resp)
── Error ('test-get.R:20:3'): empty series ─────────────────────────────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10004 milliseconds
Backtrace:
▆
1. ├─testthat::expect_warning(get_series(series_id = c(162, 215))) at test-get.R:20:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─aebdata::get_series(series_id = c(162, 215))
8. ├─base::do.call(...)
9. ├─base::lapply(...)
10. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series")))
11. │ └─httr2:::check_response(resp)
12. │ └─httr2:::is_response(resp)
13. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))
14. └─httr2:::handle_resp(req, resp, error_call = error_call)
15. └─rlang::cnd_signal(resp)
── Error ('test-get.R:25:3'): get works ────────────────────────────────────────
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [www.ipea.gov.br]:
Connection timed out after 10001 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(get_series(series_id = 215), rds$one) at test-get.R:25:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::get_series(series_id = 215)
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/series")))
8. │ └─httr2:::check_response(resp)
9. │ └─httr2:::is_response(resp)
10. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/series"))
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─rlang::cnd_signal(resp)
── 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)
── Error ('test-list.R:15:3'): wrong parameters ────────────────────────────────
<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 10014 milliseconds
Backtrace:
▆
1. ├─testthat::expect_warning(list_series(theme_id = c(1, 50))) at test-list.R:15:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─aebdata::list_series(theme_id = c(1, 50))
8. └─aebdata::list_themes()
9. ├─base::do.call(...)
10. ├─base::lapply(...)
11. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
12. │ └─httr2:::check_response(resp)
13. │ └─httr2:::is_response(resp)
14. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
15. └─httr2:::handle_resp(req, resp, error_call = error_call)
16. └─rlang::cnd_signal(resp)
── Error ('test-search.R:4:3'): search 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 10001 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(search_series("militares"), rds$simple) at test-search.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::search_series("militares")
5. └─aebdata::list_series()
6. └─aebdata::list_themes()
7. ├─base::do.call(...)
8. ├─base::lapply(...)
9. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
10. │ └─httr2:::check_response(resp)
11. │ └─httr2:::is_response(resp)
12. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─rlang::cnd_signal(resp)
── Error ('test-search.R:10:3'): require_all 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 10001 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-search.R:10:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::search_series(c("militares", "cargos"), require_all = TRUE)
5. └─aebdata::list_series()
6. └─aebdata::list_themes()
7. ├─base::do.call(...)
8. ├─base::lapply(...)
9. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
10. │ └─httr2:::check_response(resp)
11. │ └─httr2:::is_response(resp)
12. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─rlang::cnd_signal(resp)
── Error ('test-search.R:17:3'): case_insensitive 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 10000 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-search.R:17:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::search_series("CAP ", case_insensitive = FALSE)
5. └─aebdata::list_series()
6. └─aebdata::list_themes()
7. ├─base::do.call(...)
8. ├─base::lapply(...)
9. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
10. │ └─httr2:::check_response(resp)
11. │ └─httr2:::is_response(resp)
12. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─rlang::cnd_signal(resp)
── Error ('test-search.R:23:3'): return empty ──────────────────────────────────
<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(...) at test-search.R:23:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─aebdata::search_series("miiltares")
5. └─aebdata::list_series()
6. └─aebdata::list_themes()
7. ├─base::do.call(...)
8. ├─base::lapply(...)
9. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
10. │ └─httr2:::check_response(resp)
11. │ └─httr2:::is_response(resp)
12. └─httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas"))
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─rlang::cnd_signal(resp)
── Failure ('test-utils.R:2:3'): connection works ──────────────────────────────
Expected `test_connection_aeb()` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 11 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/12s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘exploring-data.Rmd’ using rmarkdown
Quitting from exploring-data.Rmd:28-31 [list-themes-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 10000 milliseconds
---
Backtrace:
▆
1. ├─knitr::kable(list_themes(), format = "html")
2. └─aebdata::list_themes()
3. ├─base::do.call(...)
4. ├─base::lapply(...)
5. ├─httr2::resp_body_json(httr2::req_perform(httr2::request("https://www.ipea.gov.br/atlasestado/api/v1/temas")))
6. │ └─httr2:::check_response(resp)
7. │ └─httr2:::is_response(resp)
8. └─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 10000 milliseconds
--- failed re-building ‘exploring-data.Rmd’
SUMMARY: processing the following file failed:
‘exploring-data.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