Running ‘testthat.R’ [10s/68s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(archiveRetriever)
  > 
  > test_check("archiveRetriever")
  ERROR in Urls[ 2 ]: Failed to parse text 
  ERROR in Urls[ 1 ]: Failed to parse text 
  ERROR in Urls[ 4 ]: Failed to parse text 
  ERROR in Urls[ 1 ]: Failed to parse text 
  [ FAIL 10 | WARN 8 | SKIP 16 | PASS 61 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (16): 'test_archive_overview.R:10:3', 'test_archive_overview.R:22:3',
    'test_archive_overview.R:78:13', 'test_retrieve_urls.R:9:3',
    'test_retrieve_urls.R:112:13', 'test_retrieve_urls.R:145:3',
    'test_retrieve_urls.R:153:3', 'test_scrape_urls.R:415:3',
    'test_scrape_urls.R:447:3', 'test_scrape_urls.R:467:5',
    'test_scrape_urls.R:589:5', 'test_scrape_urls.R:628:5',
    'test_scrape_urls.R:641:3', 'test_scrape_urls.R:658:3',
    'test_scrape_urls.R:672:3', 'test_scrape_urls.R:700:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_retrieve_links.R:9:5'): retrieve_links() returns a data frame ──
  Error in `retrieve_links("http://web.archive.org/web/20190801001228/https://www.spiegel.de/")`: Failed to parse text
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_retrieve_links.R:8:5
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::retrieve_links("http://web.archive.org/web/20190801001228/https://www.spiegel.de/") at test_retrieve_links.R:9:5
  ── Error ('test_retrieve_links.R:158:5'): retrieve_links() returns a data frame ──
  Error in `retrieve_links("http://web.archive.org/web/20190801001228/https://www.spiegel.de/", 
      filter = TRUE)`: Failed to parse text
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_retrieve_links.R:157:3
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::retrieve_links(...) at test_retrieve_links.R:158:5
  ── Error ('test_retrieve_links.R:169:5'): retrieve_links() returns a data frame ──
  Error in `retrieve_links("http://web.archive.org/web/20190801001228/https://www.spiegel.de/", 
      filter = FALSE)`: Failed to parse text
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_retrieve_links.R:168:3
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::retrieve_links(...) at test_retrieve_links.R:169:5
  ── Error ('test_retrieve_links.R:180:5'): retrieve_links() returns a data frame ──
  Error in `retrieve_links("http://web.archive.org/web/20190801001228/https://www.spiegel.de/", 
      pattern = "spiegel.de/politik")`: Failed to parse text
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_retrieve_links.R:179:3
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::retrieve_links(...) at test_retrieve_links.R:180:5
  ── Error ('test_retrieve_links.R:200:5'): retrieve_links() returns a data frame ──
  Error in `retrieve_links("https://de.wikipedia.org/wiki/Jesus_von_Nazaret", 
      nonArchive = TRUE)`: Failed to parse text
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_retrieve_links.R:199:3
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::retrieve_links(...) at test_retrieve_links.R:200:5
  ── Failure ('test_retrieve_urls.R:133:13'): retrieve_urls() returns error if request timeout ──
  `retrieve_urls(...)` did not throw an error.
  ── Failure ('test_scrape_urls.R:410:5'): scrape_urls() needs to start with second row when startnum is 2 ──
  output$Urls[1] not equal to "http://web.archive.org/web/20201009174440/https://www.uni-mannheim.de/universitaet/profil/geschichte/".
  target is NULL, current is character
  ── Failure ('test_scrape_urls.R:565:5'): scrape_urls() needs to sleep every 20 Urls ──
  nrow(output) not equal to 21.
  1/1 mismatches
  [1] 1 - 21 == -20
  ── Failure ('test_scrape_urls.R:622:5'): scrape_urls() needs to output 4 rows ──
  nrow(output) not equal to 4.
  1/1 mismatches
  [1] 1 - 4 == -3
  ── Error ('test_scrape_urls.R:687:5'): scrape_urls() returns a data frame ──────
  Error in `names(x) <- value`: 'names' attribute [2] must be the same length as the vector [0]
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test_scrape_urls.R:686:3
   2. │ └─cassette$call_block(...)
   3. └─archiveRetriever::scrape_urls(...) at test_scrape_urls.R:687:5
   4.   └─base::`colnames<-`(`*tmp*`, value = cnames)
  
  [ FAIL 10 | WARN 8 | SKIP 16 | PASS 61 ]
  Error: Test failures
  Execution halted