Running ‘test-all.R’ [5s/13s]
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)
  > 
  > testthat::test_check("REDCapR")
  ── Skip (test-column-sanitize.R:13:3): sanitize_last_names ─────────────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:7:3): NameComesFromREDCap ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:55:3): FullPathSpecified ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:104:3): RelativePath ──────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:153:3): Full Directory Specific ───────────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:203:3): download file conflict -Error ─────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:248:3): Download Error --bad field name ───────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:289:3): download w/ bad token -Error ──────────────
  Reason: On CRAN
  
  ── Skip (test-file-oneshot.R:309:3): upload w/ bad token -Error ────────────────
  Reason: On CRAN
  
  ── Skip (test-instrument.R:7:3): download instrument ───────────────────────────
  Reason: On CRAN
  
  ── Skip (test-instrument.R:37:3): download instrument conflict -Error ──────────
  Reason: On CRAN
  
  ── Skip (test-instrument.R:75:3): bad token -Error ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-read.R:8:3): Metadata Read Smoke Test ───────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-read.R:16:3): Super-wide ────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-read.R:33:3): Problematic Dictionary ────────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-read.R:50:3): Metadata Normal ───────────────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-write.R:13:3): Metadata Write ───────────────────────────
  Reason: On CRAN
  
  ── Skip (test-metadata-write.R:32:3): Metadata Writen -Error ───────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:6:3): Smoke Test ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:13:3): Numeric ID ────────────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:21:3): Arm ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:35:3): Character ID ──────────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:49:3): DAG ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-next-free-record-name.R:63:3): bad token -Error ──────────────────
  Reason: On CRAN
  
  ── Skip (test-project.R:4:3): Smoke Test ───────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-project.R:10:3): Read, Insert, and Update ────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-longitudinal.R:8:3): Smoke Test ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-longitudinal.R:43:3): All Records -Default ────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-longitudinal.R:85:3): filter - numeric ────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-longitudinal.R:126:3): filter - character ─────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:7:3): smoke test ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:30:3): default ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:91:3): col_types ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:146:3): specify forms ────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:201:3): raw ──────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:265:3): raw and DAG ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:329:3): label and DAG -one single batch ──────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:385:3): label and DAG -three tiny batches ────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:441:3): label ────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:510:3): label header ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:597:3): export_checkbox_label ────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:665:3): filter - numeric ─────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:702:3): filter - character ───────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-simple.R:736:3): bad token -Error ─────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-survey.R:9:3): Smoke Test ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-batch-survey.R:39:3): All Records -Default ──────────────────
  Reason: On CRAN
  
  ── Skip (test-read-clinical-trial.R:6:3): smoke test ───────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-clinical-trial.R:12:3): default ─────────────────────────────
  Reason: On CRAN
  
  ── Warning (test-read-errors.R:9:3): One Shot: Bad Uri -Not HTTPS ──────────────
  14 parsing failures.
  row col  expected    actual         file
    1  -- 2 columns 1 columns literal data
    2  -- 2 columns 1 columns literal data
    3  -- 2 columns 1 columns literal data
    4  -- 2 columns 1 columns literal data
    5  -- 2 columns 3 columns literal data
  ... ... ......... ......... ............
  See problems(...) for more details.
  
  
  ── FAILURE (test-read-errors.R:17:3): One Shot: Bad Uri -Not HTTPS ─────────────
  An empty data.frame should be returned. not equal to data.frame().
  names for target but not for current
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 2 components >
  Attributes: < Component 2: Modes: list, numeric >
  Attributes: < Component 2: names for target but not for current >
  Attributes: < Component 2: Attributes: < Modes: list, NULL > >
  Attributes: < Component 2: Attributes: < names for target but not for current > >
  Attributes: < Component 2: Attributes: < current is not list-like > >
  Attributes: < Component 2: Length mismatch: comparison on first 0 components >
  ...
  
  ── FAILURE (test-read-errors.R:18:3): One Shot: Bad Uri -Not HTTPS ─────────────
  returned_object$status_code %in% c(411L, 501L) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── FAILURE (test-read-errors.R:19:3): One Shot: Bad Uri -Not HTTPS ─────────────
  returned_object$raw_text %in% c(expected_message_411, expected_message_501) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── FAILURE (test-read-errors.R:23:3): One Shot: Bad Uri -Not HTTPS ─────────────
  returned_object$success is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  
  ── Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ────────────────
  The following named parsers don't match the column names: field_name
  
  ── Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ────────────────
  14 parsing failures.
  row col  expected    actual         file
    1  -- 2 columns 1 columns literal data
    2  -- 2 columns 1 columns literal data
    3  -- 2 columns 1 columns literal data
    4  -- 2 columns 1 columns literal data
    5  -- 2 columns 3 columns literal data
  ... ... ......... ......... ............
  See problems(...) for more details.
  
  
  ── Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ────────────────
  Unknown or uninitialised column: `field_name`.
  
  ── Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ────────────────
  14 parsing failures.
  row col  expected    actual         file
    1  -- 2 columns 1 columns literal data
    2  -- 2 columns 1 columns literal data
    3  -- 2 columns 1 columns literal data
    4  -- 2 columns 1 columns literal data
    5  -- 2 columns 3 columns literal data
  ... ... ......... ......... ............
  See problems(...) for more details.
  
  
  ── Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS ────────────────
  14 parsing failures.
  row col  expected    actual         file
    1  -- 2 columns 1 columns literal data
    2  -- 2 columns 1 columns literal data
    3  -- 2 columns 1 columns literal data
    4  -- 2 columns 1 columns literal data
    5  -- 2 columns 3 columns literal data
  ... ... ......... ......... ............
  See problems(...) for more details.
  
  
  ── FAILURE (test-read-errors.R:56:3): Batch: Bad Uri -Not HTTPS ────────────────
  An empty data.frame should be returned. not equal to data.frame().
  names for target but not for current
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 2 components >
  Attributes: < Component 2: Modes: list, numeric >
  Attributes: < Component 2: names for target but not for current >
  Attributes: < Component 2: Attributes: < Modes: list, NULL > >
  Attributes: < Component 2: Attributes: < names for target but not for current > >
  Attributes: < Component 2: Attributes: < current is not list-like > >
  Attributes: < Component 2: Length mismatch: comparison on first 0 components >
  ...
  
  ── FAILURE (test-read-errors.R:57:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object$status_code %in% c(411L, 501L) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── FAILURE (test-read-errors.R:58:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object$records_collapsed not equal to "failed in initial batch call".
  1/1 mismatches
  x[1]: ""
  y[1]: "failed in initial batch call"
  
  ── FAILURE (test-read-errors.R:59:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object$fields_collapsed not equal to "failed in initial batch call".
  1/1 mismatches
  x[1]: ""
  y[1]: "failed in initial batch call"
  
  ── FAILURE (test-read-errors.R:60:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object\$outcome_messages does not match "The initial call failed with the code: (411|501).".
  Actual value: "15 records and 2 columns were read from REDCap in 0\.7 seconds\.  The http status code was 200\."
  
  ── FAILURE (test-read-errors.R:61:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object$success is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  
  ── Skip (test-read-oneshot-eav.R:6:3): smoke test ──────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:10:3): default ────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:63:3): specify forms ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:107:3): raw ───────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:155:3): raw and DAG ───────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:203:3): label and DAG ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:253:3): label header ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:301:3): filter - numeric ──────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:338:3): filter - character ────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot-eav.R:370:3): bad token -Error ──────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:6:3): smoke test ──────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:16:3): default ────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:102:3): col_types ─────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:184:3): specify forms ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:251:3): force character type ──────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:333:3): raw ───────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:412:3): raw and DAG ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:493:3): label and DAG ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:581:3): label ─────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:666:3): label header ──────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:755:3): export_checkbox_label ─────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:840:3): filter - numeric ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:909:3): filter - character ────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-oneshot.R:974:3): bad token -Error ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-russian.R:6:3): Russian Recruit ─────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-superwide.R:6:3): smoke test ────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-read-superwide.R:13:3): correct dimensions -oneshot ──────────────
  Reason: On CRAN
  
  ── Skip (test-read-superwide.R:38:3): correct dimensions -batch ────────────────
  Reason: On CRAN
  
  ── Skip (test-survey-link-export-oneshot.R:8:3): Smoke Test ────────────────────
  Reason: On CRAN
  
  ── Skip (test-survey-link-export-oneshot.R:21:3): Vanilla ──────────────────────
  Reason: On CRAN
  
  ── Skip (test-survey-link-export-oneshot.R:41:3): Nonexistent Record ID ────────
  Reason: On CRAN
  
  ── Skip (test-users-export.R:7:3): smoke test ──────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-users-export.R:15:3): with DAGs ──────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-users-export.R:62:3): without DAGs ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-users-export.R:109:3): bad token -Error ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-variables.R:6:3): Smoke Test ─────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-variables.R:12:3): All Records -Default ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-variables.R:50:3): Bad URI ───────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-variables.R:77:3): bad token -Error ──────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-version.R:6:3): Smoke Test ───────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-version.R:16:3): Version Successful ──────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-version.R:29:3): Version Unuccessful --bad token ─────────────────
  Reason: On CRAN
  
  ── Skip (test-write-batch.R:4:3): Smoke Test ───────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-write-batch.R:10:3): Write Batch -Insert ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-write-batch.R:93:3): Write Batch -Update One Field ───────────────
  Reason: On CRAN
  
  ── Skip (test-write-batch.R:183:3): Write Batch -Update Two Fields ─────────────
  Reason: On CRAN
  
  ── Skip (test-write-batch.R:273:3): Write Batch -Bad URI ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-write-oneshot.R:4:3): Smoke Test ─────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-write-oneshot.R:10:3): Write One Shot -Insert ────────────────────
  Reason: On CRAN
  
  ── Skip (test-write-oneshot.R:93:3): Write One Shot -Update One Field ──────────
  Reason: On CRAN
  
  ── Skip (test-write-oneshot.R:183:3): Write One Shot -Update Two Fields ────────
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (99)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test-read-errors.R:9:3): One Shot: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:17:3): One Shot: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:18:3): One Shot: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:19:3): One Shot: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:23:3): One Shot: Bad Uri -Not HTTPS
  Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS
  Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS
  Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS
  Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS
  Warning (test-read-errors.R:48:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:56:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:57:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:58:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:59:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:60:3): Batch: Bad Uri -Not HTTPS
  FAILURE (test-read-errors.R:61:3): Batch: Bad Uri -Not HTTPS
  
  [ FAIL 10 | WARN 6 | SKIP 99 | PASS 124 ]
  Error: Test failures
  Execution halted