Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [50s/351s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(medrxivr)
  > 
  > test_check("medrxivr")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● API connection refused (3)
  ● On CRAN (6)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-export.R:5:1): (code run outside of `test_that()`) ────────────
  One or more parsing issues, see `problems()` for details
  Backtrace:
   1. medrxivr::mx_search(...) test-export.R:5:0
   2. medrxivr::mx_snapshot()
   3. base::paste0("https://www.medrxiv.org", mx_data$link)
  ── Warning (test-export.R:5:1): (code run outside of `test_that()`) ────────────
  NAs introduced by coercion
  Backtrace:
   1. medrxivr::mx_search(...) test-export.R:5:0
  ── Warning (test-search.R:7:1): (code run outside of `test_that()`) ────────────
  One or more parsing issues, see `problems()` for details
  Backtrace:
   1. medrxivr::mx_snapshot("6c4056d2cccd6031d92ee4269b1785c6ec4d555b") test-search.R:7:0
   2. base::paste0("https://www.medrxiv.org", mx_data$link)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-api.R:44:3): Check number of columns in output ──────────────────
  Error: API connection refused. As this is usually due to current user load, please try again in a little while, or use the maintained static daily snapshot (available for medRxiv only)
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-api.R:44:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::ncol(mx_api_doi("10.1101/2020.02.25.20021568"))
   5. └─medrxivr::mx_api_doi("10.1101/2020.02.25.20021568")
   6.   └─medrxivr:::api_to_df(api_link(server, doi))
  
  [ FAIL 1 | WARN 3 | SKIP 9 | PASS 20 ]
  Error: Test failures
  Execution halted