CRAN Package Check Results for Package aebdata

Last updated on 2026-06-17 13:54:13 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.6 1.85 33.89 35.74 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.6 1.23 25.16 26.39 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.6 53.95 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.6 83.96 ERROR
r-devel-windows-x86_64 0.1.6 6.00 314.00 320.00 ERROR
r-patched-linux-x86_64 0.1.6 1.98 32.59 34.57 OK
r-release-linux-x86_64 0.1.6 1.89 29.02 30.91 ERROR
r-release-macos-arm64 0.1.6 1.00 142.00 143.00 OK
r-release-macos-x86_64 0.1.6 2.00 177.00 179.00 OK
r-release-windows-x86_64 0.1.6 5.00 247.00 252.00 ERROR
r-oldrel-macos-arm64 0.1.6 1.00 255.00 256.00 OK
r-oldrel-macos-x86_64 0.1.6 1.00 173.00 174.00 OK
r-oldrel-windows-x86_64 0.1.6 5.00 239.00 244.00 ERROR

Check Details

Version: 0.1.6
Check: tests
Result: ERROR Running ‘testthat.R’ [4s/191s] 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 x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-17.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-20.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-25.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-28.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 15 | WARN 0 | SKIP 0 | PASS 7 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get.R:11:3'): wrong parameters ───────────────────────────────── Error in `open.connection(x, "rb")`: cannot open the connection 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. └─aebdata:::get_series_csv(series_id = df_series$series_id) 9. ├─base::grep(...) 10. │ └─base::is.factor(x) 11. ├─rvest::html_attr(...) 12. │ └─xml2::xml_attr(x, name, default = default) 13. ├─rvest::html_elements(...) 14. ├─rvest::html_element(...) 15. ├─rvest::read_html(...) 16. └─xml2:::read_html.default(...) 17. ├─base::suppressWarnings(...) 18. │ └─base::withCallingHandlers(...) 19. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options) 20. └─xml2:::read_xml.character(...) 21. └─xml2:::read_xml.connection(...) 22. ├─base::open(x, "rb") 23. └─base::open.connection(x, "rb") ── Failure ('test-get.R:17:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = 162)` to throw a error. ── Failure ('test-get.R:18:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 177))` to throw a error. ── Failure ('test-get.R:20:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 215))` to throw a warning. ── Failure ('test-get.R:25:3'): get works ────────────────────────────────────── Expected `get_series(series_id = 215)` to equal `rds$one`. Differences: `actual` is a character vector ('cli-3823921-15') `expected` is an S3 object of class <data.frame>, a list ── 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` is a character vector ('cli-3823921-18') `expected` 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-3823921-21') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 15 | WARN 0 | SKIP 0 | PASS 7 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.6
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/194s] 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-12.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-17.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-20.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-25.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-28.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 15 | WARN 0 | SKIP 0 | PASS 8 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get.R:12:3'): wrong parameters ───────────────────────────────── Error in `open.connection(x, "rb")`: cannot open the connection Backtrace: ▆ 1. ├─testthat::expect_warning(get_series(series_id = 215, series_title = "Test")) at test-get.R:12: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 = 215, series_title = "Test") 8. └─aebdata:::get_series_csv(series_id = df_series$series_id) 9. ├─base::grep(...) 10. │ └─base::is.factor(x) 11. ├─rvest::html_attr(...) 12. │ └─xml2::xml_attr(x, name, default = default) 13. ├─rvest::html_elements(...) 14. ├─rvest::html_element(...) 15. ├─rvest::read_html(...) 16. └─xml2:::read_html.default(...) 17. ├─base::suppressWarnings(...) 18. │ └─base::withCallingHandlers(...) 19. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options) 20. └─xml2:::read_xml.character(...) 21. └─xml2:::read_xml.connection(...) 22. ├─base::open(x, "rb") 23. └─base::open.connection(x, "rb") ── Failure ('test-get.R:17:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = 162)` to throw a error. ── Failure ('test-get.R:18:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 177))` to throw a error. ── Failure ('test-get.R:20:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 215))` to throw a warning. ── Failure ('test-get.R:25:3'): get works ────────────────────────────────────── Expected `get_series(series_id = 215)` to equal `rds$one`. Differences: `actual` is a character vector ('cli-3540627-15') `expected` is an S3 object of class <data.frame>, a list ── 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` is a character vector ('cli-3540627-18') `expected` 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-3540627-21') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 15 | WARN 0 | SKIP 0 | PASS 8 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.6
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/rlang_error> Error in `df_themes$theme_id`: ! $ operator is invalid for atomic vectors --- Backtrace: ▆ 1. ├─knitr::kable(list_series(theme_id = c(41, 49)), format = "html") 2. └─aebdata::list_series(theme_id = c(41, 49)) 3. └─base::intersect(theme_id, df_themes$theme_id) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'exploring-data.Rmd' failed with diagnostics: $ operator is invalid for atomic vectors --- failed re-building ‘exploring-data.Rmd’ SUMMARY: processing the following file failed: ‘exploring-data.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-debian-gcc, r-release-linux-x86_64

Version: 0.1.6
Check: tests
Result: ERROR Running ‘testthat.R’ [0m/10m] 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") x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-20.R Error in open.connection(x, "rb") : cannot open the connection Saving _problems/test-get-28.R Saving _problems/test-get-34.R Saving _problems/test-list-6.R [ FAIL 4 | WARN 1 | SKIP 0 | PASS 21 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get.R:20:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 215))` to throw a warning. ── 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 ── Error ('test-get.R:34:3'): get_csv works ──────────────────────────────────── Error: cannot open the connection Backtrace: ▆ 1. ├─testthat::expect_equal(get_series_csv(215), rds$one) at test-get.R:34:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─aebdata:::get_series_csv(215) 5. │ ├─base::as.data.frame(...) 6. │ └─readr::read_delim(...) 7. │ └─vroom::vroom(...) 8. │ └─vroom:::vroom_(...) 9. └─vroom (local) `<fn>`(`<curl>`, "rb") 10. └─base::tryCatch(...) 11. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. └─value[[3L]](cond) ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── <httr2_failure/httr2_error/rlang_error/error/condition> Error in `httr2::req_perform(httr2::request(paste0("https://www.ipea.gov.br/atlasestado/api/v1/series/", theme_id)))`: 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-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) 6. └─aebdata (local) FUN(X[[i]], ...) 7. └─aebdata:::list_series_id(theme_id = id) 8. ├─base::do.call(...) 9. ├─base::lapply(...) 10. ├─httr2::resp_body_json(...) 11. │ └─httr2:::check_response(resp) 12. │ └─httr2:::is_response(resp) 13. └─httr2::req_perform(...) 14. └─httr2:::handle_resp(req, resp, error_call = error_call) 15. └─rlang::cnd_signal(resp) [ FAIL 4 | WARN 1 | SKIP 0 | PASS 21 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.6
Check: tests
Result: ERROR Running ‘testthat.R’ [8s/169s] 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-25.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 10 | WARN 1 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get.R:25:3'): get works ──────────────────────────────────────── Error: cannot open the connection 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. │ └─aebdata:::get_series_csv(series_id = df_series$series_id) 6. │ ├─base::as.data.frame(...) 7. │ └─readr::read_delim(...) 8. │ └─vroom::vroom(...) 9. │ └─vroom:::vroom_(...) 10. └─vroom (local) `<fn>`(`<curl>`, "rb") 11. └─base::tryCatch(...) 12. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 13. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 14. └─value[[3L]](cond) ── 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-2598344-6') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 10 | WARN 1 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.1.6
Check: tests
Result: ERROR Running 'testthat.R' [225s] 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-35.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 9 | WARN 1 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get.R:35:3'): get_csv works ──────────────────────────────────── Error: cannot open the connection Backtrace: ▆ 1. ├─testthat::expect_equal(get_series_csv(197), rds$multiple) at test-get.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─aebdata:::get_series_csv(197) 5. │ ├─base::lapply(...) 6. │ └─base::lapply(...) 7. │ └─aebdata (local) FUN(X[[i]], ...) 8. │ └─readr::read_delim(link, delim = ";", show_col_types = FALSE) 9. │ └─vroom::vroom(...) 10. │ └─vroom:::vroom_(...) 11. └─vroom (local) `<fn>`(`<curl>`, "rb") 12. └─base::tryCatch(...) 13. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 14. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 15. └─value[[3L]](cond) ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-1877784-6') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 9 | WARN 1 | SKIP 0 | PASS 16 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

Version: 0.1.6
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/rlang_error> Error in `df_themes$theme_id`: ! $ operator is invalid for atomic vectors --- Backtrace: ▆ 1. ├─knitr::kable(list_series(theme_id = c(41, 49)), format = "html") 2. └─aebdata::list_series(theme_id = c(41, 49)) 3. └─base::intersect(theme_id, df_themes$theme_id) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'exploring-data.Rmd' failed with diagnostics: $ operator is invalid for atomic vectors --- failed re-building 'exploring-data.Rmd' SUMMARY: processing the following file failed: 'exploring-data.Rmd' Error: Vignette re-building failed. Execution halted Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.6
Check: tests
Result: ERROR Running ‘testthat.R’ [4s/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 in open.connection(x, "rb") : cannot open the connection Error in open.connection(x, "rb") : cannot open the connection Saving _problems/test-get-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-20.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-25.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-28.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 13 | WARN 0 | SKIP 0 | PASS 10 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get.R:18:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 177))` to throw a error. ── Failure ('test-get.R:20:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 215))` to throw a warning. ── Failure ('test-get.R:25:3'): get works ────────────────────────────────────── Expected `get_series(series_id = 215)` to equal `rds$one`. Differences: `actual` is a character vector ('cli-3707866-9') `expected` is an S3 object of class <data.frame>, a list ── 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` is a character vector ('cli-3707866-12') `expected` 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-3707866-15') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 13 | WARN 0 | SKIP 0 | PASS 10 ] Error: ! Test failures. Execution halted Flavor: r-release-linux-x86_64

Version: 0.1.6
Check: tests
Result: ERROR Running 'testthat.R' [172s] 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") x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-20.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-25.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-get-28.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 12 | WARN 0 | SKIP 0 | PASS 11 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get.R:20:3'): empty series ─────────────────────────────────── Expected `get_series(series_id = c(162, 215))` to throw a warning. ── Failure ('test-get.R:25:3'): get works ────────────────────────────────────── Expected `get_series(series_id = 215)` to equal `rds$one`. Differences: `actual` is a character vector ('cli-21140-9') `expected` is an S3 object of class <data.frame>, a list ── 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` is a character vector ('cli-21140-12') `expected` 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-21140-15') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 12 | WARN 0 | SKIP 0 | PASS 11 ] Error: ! Test failures. Execution halted Flavor: r-release-windows-x86_64

Version: 0.1.6
Check: tests
Result: ERROR Running 'testthat.R' [159s] 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-25.R Saving _problems/test-get-33.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-3.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-6.R x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. x Could not connect. Please, check your connection or try again later. Saving _problems/test-list-15.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-4.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-11.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-18.R x Could not connect. Please, check your connection or try again later. Saving _problems/test-search-25.R Saving _problems/test-utils-2.R [ FAIL 10 | WARN 0 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get.R:25:3'): get works ──────────────────────────────────────── Error in `open.connection(x, "rb")`: cannot open the connection 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. └─aebdata:::get_series_csv(series_id = df_series$series_id) 6. ├─base::grep(...) 7. │ └─base::is.factor(x) 8. ├─rvest::html_attr(...) 9. │ └─xml2::xml_attr(x, name, default = default) 10. ├─rvest::html_elements(...) 11. ├─rvest::html_element(...) 12. ├─rvest::read_html(...) 13. └─xml2:::read_html.default(...) 14. ├─base::suppressWarnings(...) 15. │ └─base::withCallingHandlers(...) 16. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options) 17. └─xml2:::read_xml.character(...) 18. └─xml2:::read_xml.connection(...) 19. ├─base::open(x, "rb") 20. └─base::open.connection(x, "rb") ── 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") ── Failure ('test-list.R:3:3'): list works ───────────────────────────────────── Expected `list_themes()` to equal `rds$themes`. Differences: `actual` is a character vector ('cli-95992-6') `expected` is an S3 object of class <data.frame>, a list ── Error ('test-list.R:4:3'): list works ─────────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-list.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─aebdata::list_series(theme_id = 50, theme_title = "Militares na burocracia") 5. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-list.R:15:3'): wrong parameters ──────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::intersect(theme_id, df_themes$theme_id) ── Error ('test-search.R:4:3'): search works ─────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:10:3'): require_all works ───────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:17:3'): case_insensitive works ──────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Error ('test-search.R:23:3'): return empty ────────────────────────────────── Error in `df_themes$theme_id`: $ operator is invalid for atomic vectors 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. └─base::lapply(df_themes$theme_id, function(id) list_series_id(theme_id = id)) ── Failure ('test-utils.R:2:3'): connection works ────────────────────────────── Expected `test_connection_aeb()` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 10 | WARN 0 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-windows-x86_64