Running ‘testthat.R’ [18s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(archiveRetriever)
  > 
  > test_check("archiveRetriever")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===                                                                   |   5%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==========                                                            |  14%
    |                                                                            
    |=============                                                         |  19%
    |                                                                            
    |=================                                                     |  24%
    |                                                                            
    |====================                                                  |  29%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===========================                                           |  38%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |========================================================              |  80%[ FAIL 2 | WARN 2 | SKIP 14 | PASS 56 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (14)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_archive_overview.R:76'): archive_overview() needs homepage to be saved in the Internet Archive ──
  `archive_overview(...)` threw an error with unexpected message.
  Expected match: "Homepage has never been saved in the Internet Archive"
  Actual message: "cannot open the connection to 'http://web.archive.org/cdx/search/cdx?url=https://cyprus-mail.com/2021/02/18/the-secret-helping-car-companies-stay-profitable/&matchType=url&&collapse=timestamp:8&limit=15000&filter=!mimetype:image/gif&filter=!mimetype:image/jpeg&from=19900101&to=20221105&output=json&limit=1'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_archive_overview.R:76:12
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─archiveRetriever::archive_overview(...)
    7.   ├─base::nrow(as.data.frame(jsonlite::fromJSON(ArchiveCheck)))
    8.   ├─base::as.data.frame(jsonlite::fromJSON(ArchiveCheck))
    9.   └─jsonlite::fromJSON(ArchiveCheck)
   10.     └─jsonlite:::parse_and_simplify(...)
   11.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.         └─jsonlite:::parse_con(txt, bigint_as_char)
   13.           ├─base::open(con, "rb")
   14.           └─base::open.connection(con, "rb")
  ── Failure ('test_scrape_urls.R:504'): scrape_urls() needs to sleep every 20 Urls ──
  nrow(output) not equal to 21.
  1/1 mismatches
  [1] 9 - 21 == -12
  
  [ FAIL 2 | WARN 2 | SKIP 14 | PASS 56 ]
  Error: Test failures
  Execution halted