Running ‘testthat.R’ [2s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(internetarchive)
  > 
  > test_check("internetarchive")
  ── 1. Error: (unknown) (@test-files-download.R#5)  ─────────────────────────────
  Timeout was reached: [archive.org] Connection timed out after 10001 milliseconds
  Backtrace:
   1. base:::ia_get_items("TheLifeOfFatherHecker", silence = TRUE)
   3. base::mapply(...)
   5. httr::GET("https://archive.org/", path = path, query = list(output = "json"))
   6. httr:::request_perform(req, hu$handle$handle)
   8. httr:::request_fetch.write_memory(req$output, req$url, handle)
   9. curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: keyword search works (@test-search.R#4)  ──────────────────────────
  Timeout was reached: [archive.org] Connection timed out after 10001 milliseconds
  Backtrace:
    1. testthat::expect_message(...)
    6. internetarchive::ia_keyword_search("isaac hecker")
    7. httr::GET(url)
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: advanced search works (@test-search.R#11)  ────────────────────────
  Timeout was reached: [archive.org] Connection timed out after 10001 milliseconds
  Backtrace:
    1. testthat::expect_message(...)
    6. internetarchive::ia_search(c(creator = "herman melville"), num_results = 10)
    7. httr::GET(url)
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 5 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: (unknown) (@test-files-download.R#5) 
  2. Error: keyword search works (@test-search.R#4) 
  3. Error: advanced search works (@test-search.R#11) 
  
  Error: testthat unit tests failed
  Execution halted