Running ‘testthat.R’ [7s/414s]
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 readBin(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x5579f8101870>),  : 
    Failure when receiving data from the peer [www.ipea.gov.br]: Recv failure: Connection reset by peer
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 24 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get.R:12:3'): wrong parameters ─────────────────────────────────
  <curl_error_recv_error/curl_error/error/condition>
  Error in `readBin(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x5579f718dd60>), 
      "raw", 65536L)`: Failure when receiving data from the peer [www.ipea.gov.br]: Recv failure: Connection reset by peer
  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::readBin(`<curl>`, "raw", 65536L)
   23. └─curl:::raise_libcurl_error(...)
  ── Failure ('test-get.R:18:3'): empty series ───────────────────────────────────
  `get_series(series_id = c(162, 177))` did not throw the expected error.
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 24 ]
  Error: Test failures
  Execution halted