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