Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbiorxiv)
  > 
  > test_check("rbiorxiv")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-biorxiv_content.R:4:3): biorxiv_content returns ─────────────────
  Error: lexical error: invalid char in json text.
                                         Error : (2002) Connection refus
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_is(...) test-biorxiv_content.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    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)
    8.         ├─base::unlist(httr::content(request, as = "parsed")$messages)
    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)
  ── Error (test-biorxiv_published.R:4:3): biorxiv_published returns ─────────────
  Error: lexical error: invalid char in json text.
                                         Error : (2002) Connection refus
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_is(...) test-biorxiv_published.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rbiorxiv::biorxiv_published(from = "2014-01-01", to = "2014-01-30")
    5.   └─rbiorxiv:::fetch_content(url = url)
    6.     └─rbiorxiv:::handle_response(request = request)
    7.       ├─base::unlist(httr::content(request, as = "parsed")$messages)
    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)
  ── Error (test-biorxiv_publisher.R:4:3): biorxiv_publisher returns ─────────────
  Error: lexical error: invalid char in json text.
                                         Error : (2002) Connection refus
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_is(...) test-biorxiv_publisher.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rbiorxiv::biorxiv_publisher(...)
    5.   └─rbiorxiv:::fetch_content(url = url)
    6.     └─rbiorxiv:::handle_response(request = request)
    7.       ├─base::unlist(httr::content(request, as = "parsed")$messages)
    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)
  ── Error (test-biorxiv_summary.R:4:3): biorxiv_summary returns ─────────────────
  Error: lexical error: invalid char in json text.
                                         Error : (2002) Connection refus
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_is(biorxiv_summary(), "list") test-biorxiv_summary.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rbiorxiv::biorxiv_summary()
    5.   └─rbiorxiv:::fetch_content(url = url)
    6.     └─rbiorxiv:::handle_response(request = request)
    7.       ├─base::unlist(httr::content(request, as = "parsed")$messages)
    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)
  ── Error (test-biorxiv_usage.R:4:3): biorxiv_usage returns ─────────────────────
  Error: lexical error: invalid char in json text.
                                         Error : (2002) Connection refus
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_is(biorxiv_usage(), "list") test-biorxiv_usage.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rbiorxiv::biorxiv_usage()
    5.   └─rbiorxiv:::fetch_content(url = url)
    6.     └─rbiorxiv:::handle_response(request = request)
    7.       ├─base::unlist(httr::content(request, as = "parsed")$messages)
    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)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 46 ]
  Error: Test failures
  Execution halted