Running 'testthat.R' [3s/9s]
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)  --------------
  lexical error: invalid char in json text.
                                         (2002) Connection refus
                       (right here) ------^
  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. rbiorxiv:::handle_response(request = request)
    9. httr::content(request, as = "parsed")
   10. httr:::parse_auto(raw, type, encoding, ...)
   11. httr:::parser(...)
   12. jsonlite::fromJSON(...)
   13. jsonlite:::parse_and_simplify(...)
   14. jsonlite:::parseJSON(txt, bigint_as_char)
   15. jsonlite:::parse_string(txt, bigint_as_char)
  
  -- 2. Error: biorxiv_published returns (@test-biorxiv_published.R#4)  ----------
  lexical error: invalid char in json text.
                                         (2002) Connection refus
                       (right here) ------^
  Backtrace:
    1. testthat::expect_is(...)
    4. rbiorxiv::biorxiv_published(from = "2014-01-01", to = "2014-01-30")
    5. rbiorxiv:::fetch_content(url = url)
    6. rbiorxiv:::handle_response(request = request)
    8. httr::content(request, as = "parsed")
    9. httr:::parse_auto(raw, type, encoding, ...)
   10. httr:::parser(...)
   11. jsonlite::fromJSON(...)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_string(txt, bigint_as_char)
  
  -- 3. Error: biorxiv_publisher returns (@test-biorxiv_publisher.R#4)  ----------
  lexical error: invalid char in json text.
                                         (2002) Connection refus
                       (right here) ------^
  Backtrace:
    1. testthat::expect_is(...)
    4. rbiorxiv::biorxiv_publisher(...)
    5. rbiorxiv:::fetch_content(url = url)
    6. rbiorxiv:::handle_response(request = request)
    8. httr::content(request, as = "parsed")
    9. httr:::parse_auto(raw, type, encoding, ...)
   10. httr:::parser(...)
   11. jsonlite::fromJSON(...)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_string(txt, bigint_as_char)
  
  -- 4. Error: biorxiv_summary returns (@test-biorxiv_summary.R#4)  --------------
  lexical error: invalid char in json text.
                                         (2002) Connection refus
                       (right here) ------^
  Backtrace:
    1. testthat::expect_is(biorxiv_summary(), "list")
    4. rbiorxiv::biorxiv_summary()
    5. rbiorxiv:::fetch_content(url = url)
    6. rbiorxiv:::handle_response(request = request)
    8. httr::content(request, as = "parsed")
    9. httr:::parse_auto(raw, type, encoding, ...)
   10. httr:::parser(...)
   11. jsonlite::fromJSON(...)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_string(txt, bigint_as_char)
  
  -- 5. Error: biorxiv_usage returns (@test-biorxiv_usage.R#4)  ------------------
  lexical error: invalid char in json text.
                                         (2002) Connection refus
                       (right here) ------^
  Backtrace:
    1. testthat::expect_is(biorxiv_usage(), "list")
    4. rbiorxiv::biorxiv_usage()
    5. rbiorxiv:::fetch_content(url = url)
    6. rbiorxiv:::handle_response(request = request)
    8. httr::content(request, as = "parsed")
    9. httr:::parse_auto(raw, type, encoding, ...)
   10. httr:::parser(...)
   11. jsonlite::fromJSON(...)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_string(txt, bigint_as_char)
  
  == testthat results  ===========================================================
  [ OK: 46 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  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) 
  4. Error: biorxiv_summary returns (@test-biorxiv_summary.R#4) 
  5. Error: biorxiv_usage returns (@test-biorxiv_usage.R#4) 
  
  Error: testthat unit tests failed
  Execution halted