Running 'test-all.R' [15s]
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")
  Starting to update 32 records to be written at 2022-07-26 15:19:46.
  Writing batch 1 of 1, with indices 1 through 32.
  Starting to update 32 records to be written at 2022-07-26 15:19:47.
  Writing batch 1 of 4, with indices 1 through 10.
  Writing batch 1 of 1, with indices 1 through 32.
  Starting to update 32 records to be written at 2022-07-26 15:19:49.
  Writing batch 1 of 4, with indices 1 through 10.
  [ FAIL 8 | WARN 0 | SKIP 109 | PASS 111 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (109)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read-errors.R:9:3): One Shot: Bad Uri -Not HTTPS ────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-read-errors.R:9:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_read_oneshot(...)
    8.   └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
    9.     └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   10.       └─httr:::request_perform(req, hu$handle$handle)
   11.         ├─httr:::request_fetch(req$output, req$url, handle)
   12.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-read-errors.R:29:3): One Shot: Bad Uri -wrong address ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-read-errors.R:29:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_read_oneshot(...)
    8.   └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
    9.     └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   10.       └─httr:::request_perform(req, hu$handle$handle)
   11.         ├─httr:::request_fetch(req$output, req$url, handle)
   12.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ──────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-read-errors.R:48:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_read(...)
    8.   └─REDCapR::redcap_metadata_read(...)
    9.     └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
   10.       └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   11.         └─httr:::request_perform(req, hu$handle$handle)
   12.           ├─httr:::request_fetch(req$output, req$url, handle)
   13.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-read-errors.R:67:3): Batch: Bad Uri -wrong address ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-read-errors.R:67:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_read(...)
    8.   └─REDCapR::redcap_metadata_read(...)
    9.     └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
   10.       └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   11.         └─httr:::request_perform(req, hu$handle$handle)
   12.           ├─httr:::request_fetch(req$output, req$url, handle)
   13.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-read-errors.R:96:3): guess_max deprecated -warn ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-read-errors.R:96:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_read(...)
    8.   └─REDCapR::redcap_metadata_read(...)
    9.     └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
   10.       └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   11.         └─httr:::request_perform(req, hu$handle$handle)
   12.           ├─httr:::request_fetch(req$output, req$url, handle)
   13.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-write-error.R:18:3): One Shot: writing with read-only privileges ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-write-error.R:18:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─REDCapR::redcap_write_oneshot(...)
    8.   └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
    9.     └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   10.       └─httr:::request_perform(req, hu$handle$handle)
   11.         ├─httr:::request_fetch(req$output, req$url, handle)
   12.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-write-error.R:75:3): Single Batch: writing with read-only privileges --contiue on error ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-write-error.R:75:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_message(...)
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. └─REDCapR::redcap_write(...)
   14.   └─REDCapR::redcap_write_oneshot(...)
   15.     └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
   16.       └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   17.         └─httr:::request_perform(req, hu$handle$handle)
   18.           ├─httr:::request_fetch(req$output, req$url, handle)
   19.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   20.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-write-error.R:96:3): Many Batches: writing with read-only privileges --contiue on error ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Send failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-write-error.R:96:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_warning(...)
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. ├─testthat::expect_warning(...)
   14. │ └─testthat:::expect_condition_matching(...)
   15. │   └─testthat:::quasi_capture(...)
   16. │     ├─testthat (local) .capture(...)
   17. │     │ └─base::withCallingHandlers(...)
   18. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   19. ├─testthat::expect_warning(...)
   20. │ └─testthat:::expect_condition_matching(...)
   21. │   └─testthat:::quasi_capture(...)
   22. │     ├─testthat (local) .capture(...)
   23. │     │ └─base::withCallingHandlers(...)
   24. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   25. └─REDCapR::redcap_write(...)
   26.   └─REDCapR::redcap_write_oneshot(...)
   27.     └─REDCapR:::kernel_api(redcap_uri, post_body, config_options)
   28.       └─httr::POST(url = redcap_uri, body = post_body, config = config_options)
   29.         └─httr:::request_perform(req, hu$handle$handle)
   30.           ├─httr:::request_fetch(req$output, req$url, handle)
   31.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   32.             └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 8 | WARN 0 | SKIP 109 | PASS 111 ]
  Error: Test failures
  Execution halted