Running ‘testthat.R’ [6s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (nzchar(system.file(package = "testthat"))) {
  +     library(testthat)
  +     library(jmvReadWrite)
  +     
  +     test_check("jmvReadWrite")
  + }
  
  Attaching package: 'jmvReadWrite'
  
  The following object is masked from 'package:datasets':
  
      ToothGrowth
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 150 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-merge_rows_omv.R:8:5): merge_rows_omv works ─────────────────────
  Error in `gsub(lstRpl[1, i], lstRpl[2, i], strMod)`: 'pattern' is invalid
  Backtrace:
      ▆
   1. └─jmvReadWrite::merge_rows_omv(fleInp = nmeInp, fleOut = nmeOut) at test-merge_rows_omv.R:8:4
   2.   ├─jmvReadWrite:::addInd(...)
   3.   └─jmvReadWrite:::read_all(fleInp[i], usePkg, selSet, varArg)
   4.     └─jmvReadWrite:::rplAtt(dtaFrm)
   5.       └─jmvReadWrite:::rplStr(attr(dtaFrm, crrAtt), crrAtt)
   6.         └─base::gsub(lstRpl[1, i], lstRpl[2, i], strMod)
  ── Error (test-read_omv.R:71:5): read_all works ────────────────────────────────
  Error in `gsub(lstRpl[1, i], lstRpl[2, i], strMod)`: 'pattern' is invalid
  Backtrace:
      ▆
   1. └─jmvReadWrite:::read_all(file.path("..", "ToothGrowth.omv")) at test-read_omv.R:71:4
   2.   └─jmvReadWrite:::rplAtt(dtaFrm)
   3.     └─jmvReadWrite:::rplStr(attr(dtaFrm, crrAtt), crrAtt)
   4.       └─base::gsub(lstRpl[1, i], lstRpl[2, i], strMod)
  ── Error (test-sort_omv.R:6:5): sort_omv works ─────────────────────────────────
  Error in `gsub(lstRpl[1, i], lstRpl[2, i], strMod)`: 'pattern' is invalid
  Backtrace:
      ▆
   1. └─jmvReadWrite::sort_omv(nmeInp, nmeOut, varSrt = "Image") at test-sort_omv.R:6:4
   2.   └─jmvReadWrite:::read_all(fleInp, usePkg, selSet, varArg)
   3.     └─jmvReadWrite:::rplAtt(dtaFrm)
   4.       └─jmvReadWrite:::rplStr(attr(dtaFrm, crrAtt), crrAtt)
   5.         └─base::gsub(lstRpl[1, i], lstRpl[2, i], strMod)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 150 ]
  Error: Test failures
  Execution halted