Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gwsem)
  Loading required package: OpenMx
  
  Attaching package: 'gwsem'
  
  The following object is masked from 'package:base':
  
      signif
  
  > 
  > test_check("gwsem")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-formats.R:24:1): (code run outside of `test_that()`) ──────────
  Cumulants method prevented by integer observed columns: 'FID', 'IID', and 'SEX' ; Remove these columns from your observed data for improved estimation accuracy
  Backtrace:
   1. gwsem::GWAS(...) test-formats.R:24:0
   3. gwsem::buildOneFac(pheno, paste0("i", 1:numIndicators))
   4. gwsem:::postprocessModel(oneFacPre, itemNames, exoPred)
  ── Warning (test-gxe.R:31:3): gxe data roundtrip ───────────────────────────────
  Cumulants method prevented by integer observed columns: 'sex' ; Remove these columns from your observed data for improved estimation accuracy
  Backtrace:
   1. gwsem::buildItem(pheno, paste0("i", 3), gxe = c("sex", "i4")) test-gxe.R:31:2
   2. gwsem:::postprocessModel(model, depVar, latents)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-covariate.R:36:1): (code run outside of `test_that()`) ──────────
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-covariate.R:36:0
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  ── Error (test-formats.R:24:1): (code run outside of `test_that()`) ────────────
  Error: 'names' attribute [4] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-formats.R:24:0
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  ── Error (test-gxe.R:36:3): gxe data roundtrip ─────────────────────────────────
  Error: 'names' attribute [7] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-gxe.R:36:2
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  ── Error (test-gxe.R:53:3): moderator level ────────────────────────────────────
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-gxe.R:53:2
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  ── Error (test-model.R:47:1): (code run outside of `test_that()`) ──────────────
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-model.R:47:0
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  ── Error (test-rowFilter.R:39:1): (code run outside of `test_that()`) ──────────
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      █
   1. └─gwsem::GWAS(...) test-rowFilter.R:39:0
   2.   └─OpenMx::mxRun(model)
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::generateMatrixList(flatModel)
   5.         └─OpenMx:::generateMatrixReferences(model)
  
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 10 ]
  Error: Test failures
  Execution halted