Running 'testthat.R' [94s]
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
  Saving _problems/test-get-28.R
  Saving _problems/test-get-35.R
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 24 ]
  
  ══ 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
  
  ── Error ('test-get.R:35:3'): get_csv works ────────────────────────────────────
  Error in `open.connection(x, "rb")`: 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::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")
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 24 ]
  Error:
  ! Test failures.
  Execution halted