Running ‘testthat.R’ [4s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbiorxiv)
  > 
  > test_check("rbiorxiv")
  ── 1. Error: biorxiv_content returns (@test-biorxiv_content.R#4)  ──────────────
  Failed to connect to api.biorxiv.org port 443: No route to host
  Backtrace:
    1. testthat::expect_is(...)
    4. rbiorxiv::biorxiv_content(doi = "10.1101/673665")
    5. rbiorxiv:::query_doi(server = server, doi = doi)
    6. rbiorxiv:::fetch_content(url = url)
    7. httr::GET(url = 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)
  
  ── 2. Error: biorxiv_published returns (@test-biorxiv_published.R#4)  ──────────
  Failed to connect to api.biorxiv.org port 443: No route to host
  Backtrace:
    1. testthat::expect_is(...)
    4. rbiorxiv::biorxiv_published(from = "2014-01-01", to = "2014-01-30")
    5. rbiorxiv:::fetch_content(url = url)
    6. httr::GET(url = url)
    7. httr:::request_perform(req, hu$handle$handle)
    9. httr:::request_fetch.write_memory(req$output, req$url, handle)
   10. curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: biorxiv_publisher returns (@test-biorxiv_publisher.R#4)  ──────────
  Failed to connect to api.biorxiv.org port 443: No route to host
  Backtrace:
    1. testthat::expect_is(...)
    4. rbiorxiv::biorxiv_publisher(...)
    5. rbiorxiv:::fetch_content(url = url)
    6. httr::GET(url = url)
    7. httr:::request_perform(req, hu$handle$handle)
    9. httr:::request_fetch.write_memory(req$output, req$url, handle)
   10. curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 71 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: biorxiv_content returns (@test-biorxiv_content.R#4) 
  2. Error: biorxiv_published returns (@test-biorxiv_published.R#4) 
  3. Error: biorxiv_publisher returns (@test-biorxiv_publisher.R#4) 
  
  Error: testthat unit tests failed
  Execution halted