Running ‘test-all.R’ [5s/22s]
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")
  The REDCapR read/export operation was not successful.  The error message was:
  <?xml version="1.0" encoding="UTF-8" ?><hash><error>The requested method is not implemented.</error></hash>
  The REDCapR read/export operation was not successful.  The error message was:
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <title>404 - File or directory not found.</title>
  <style type="text/css">
  <!--
  body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
  fieldset{padding:0 15px 10px 15px;} 
  h1{font-size:2.4em;margin:0;color:#FFF;}
  h2{font-size:1.7em;margin:0;color:#CC0000;} 
  h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
  #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
  background-color:#555555;}
  #content{margin:0 0 0 2%;position:relative;}
  .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
  -->
  </style>
  </head>
  <body>
  <div id="header"><h1>Server Error</h1></div>
  <div id="content">
   <div class="content-container"><fieldset>
    <h2>404 - File or directory not found.</h2>
    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
   </fieldset></div>
  </div>
  </body>
  </html>
  
  The data dictionary describing 17 fields was read from REDCap in 0.4 seconds.  The http status code was 200.
  5 records and 1 columns were read from REDCap in 0.4 seconds.  The http status code was 200.
  Starting to read 5 records  at 2021-11-24 03:58:22.
  Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
  5 records and 25 columns were read from REDCap in 0.4 seconds.  The http status code was 200.
  
  -- Column specification --------------------------------------------------------
  cols(
    .default = col_double(),
    name_first = col_character(),
    name_last = col_character(),
    address = col_character(),
    telephone = col_character(),
    email = col_character(),
    dob = col_date(format = ""),
    comments = col_character(),
    mugshot = col_character()
  )
  i Use `spec()` for the full column specifications.
  
  Starting to update 32 records to be written at 2021-11-24 03:58:26.
  Writing batch 1 of 1, with indices 1 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Starting to update 32 records to be written at 2021-11-24 03:58:27.
  Writing batch 1 of 4, with indices 1 through 10.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Writing batch 1 of 1, with indices 1 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Starting to update 32 records to be written at 2021-11-24 03:58:29.
  Writing batch 1 of 4, with indices 1 through 10.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Writing batch 2 of 4, with indices 11 through 20.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Writing batch 3 of 4, with indices 21 through 30.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  Writing batch 4 of 4, with indices 31 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: You do not have API Import/Update privileges
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (109)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read-errors.R:29:3): One Shot: Bad Uri -wrong address ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: GnuTLS recv error (-54): Error in the pull function.
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-read-errors.R:29:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.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)
  
  [ FAIL 1 | WARN 0 | SKIP 109 | PASS 165 ]
  Error: Test failures
  Execution halted