Running ‘testthat.R’ [10s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ralger)
  > 
  > test_check("ralger")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-paragraphs_scrap.R:2:3): paragraphs_scrap() works ───────────────
  Error: HTTP error 500.
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-paragraphs_scrap.R:2:2
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─`%>%`(...)
    5. ├─rvest::html_text(.)
    6. │ └─xml2::xml_text(x, trim = trim)
    7. ├─rvest::html_nodes(., "p")
    8. ├─xml2::read_html(.)
    9. └─xml2:::read_html.default(.)
   10.   ├─base::suppressWarnings(...)
   11.   │ └─base::withCallingHandlers(...)
   12.   ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
   13.   └─xml2:::read_xml.character(...)
   14.     └─xml2:::read_xml.connection(...)
   15.       ├─base::open(x, "rb")
   16.       └─base::open.connection(x, "rb")
  ── Error (test-titles_scrap.R:3:1): (code run outside of `test_that()`) ────────
  Error: HTTP error 500.
  Backtrace:
       █
    1. ├─`%>%`(...) test-titles_scrap.R:3:0
    2. ├─rvest::html_text(.)
    3. │ └─xml2::xml_text(x, trim = trim)
    4. ├─rvest::html_nodes(., "h1")
    5. ├─xml2::read_html(.)
    6. └─xml2:::read_html.default(.)
    7.   ├─base::suppressWarnings(...)
    8.   │ └─base::withCallingHandlers(...)
    9.   ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
   10.   └─xml2:::read_xml.character(...)
   11.     └─xml2:::read_xml.connection(...)
   12.       ├─base::open(x, "rb")
   13.       └─base::open.connection(x, "rb")
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 39 ]
  Error: Test failures
  In addition: Warning messages:
  1: In for (i in seq_along(specs)) { :
    closing unused connection 5 (https://www.un.org/en/)
  2: In for (i in seq_along(specs)) { :
    closing unused connection 4 (https://www.un.org/en/)
  3: In for (i in seq_along(specs)) { :
    closing unused connection 4 (https://www.un.org/en/)
  Execution halted