Running ‘spelling.R’ [0s/1s]
  Running ‘test-all.R’ [6s/134s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > # Modeled after the R6 testing structure: https://github.com/wch/R6/blob/master/tests/testthat.R
  > library(testthat)
  > library(REDCapR)
  > 
  > # source("R/helpers-testing.R")
  > testthat::test_check("REDCapR")
  clear_project_simple success: FALSE.
  Writing batch 1 of 1, with indices 1 through 5.
  The REDCapR write/import operation was not successful.  The error message was:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>504 Gateway Timeout</title>
  </head><body>
  <h1>Gateway Timeout</h1>
  <p>The gateway did not receive a timely response
  from the upstream server or application.</p>
  </body></html>
  
  [ FAIL 3 | WARN 0 | SKIP 183 | PASS 102 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (183)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-write-batch.R:48'): update-one-field ─────────────────────────
  `clear_result <- clear_project_simple()` did not throw the expected message.
  ── Failure ('test-write-batch.R:48'): update-one-field ─────────────────────────
  `clear_result` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Clearing the results from the simple project should be successful.
  Backtrace:
      ▆
   1. └─REDCapR:::clean_start_simple(batch = TRUE) at test-write-batch.R:48:2
   2.   └─testthat::expect_true(clear_result, "Clearing the results from the simple project should be successful.")
  ── Error ('test-write-batch.R:48'): update-one-field ───────────────────────────
  Error in `REDCapR::redcap_write(ds = ds_to_write, redcap_uri = project$redcap_uri, 
      token = project$token, verbose = TRUE, convert_logical_to_integer = TRUE)`: The `redcap_write()` call failed on iteration 1. 
  Backtrace:
       ▆
    1. └─REDCapR:::clean_start_simple(batch = TRUE) at test-write-batch.R:48:2
    2.   ├─testthat::expect_message(...)
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─REDCapR:::populate_project_simple(batch = batch)
    9.     ├─testthat::expect_message(...)
   10.     │ └─testthat:::expect_condition_matching(...)
   11.     │   └─testthat:::quasi_capture(...)
   12.     │     ├─testthat (local) .capture(...)
   13.     │     │ └─base::withCallingHandlers(...)
   14.     │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15.     └─REDCapR::redcap_write(...)
  
  [ FAIL 3 | WARN 0 | SKIP 183 | PASS 102 ]
  Error: Test failures
  Execution halted