Running ‘testthat.R’ [16s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gwsem)
  Loading required package: OpenMx
  To take full advantage of multiple cores, use:
    mxOption(key='Number of Threads', value=parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  > 
  > test_check("gwsem")
  Error: C stack usage  273650804 is too close to the limit
  ── 1. Error: (unknown) (@test-covariate.R#36)  ─────────────────────────────────
  This model has 5 matrices, but the backend has returned 0 values
  Backtrace:
   1. gwsem::GWAS(...)
   2. OpenMx::mxRun(model)
   3. OpenMx:::runHelper(...)
   4. OpenMx:::updateModelMatrices(model, flatModel, output$matrices)
  
  Error: C stack usage  273650804 is too close to the limit
  ── 2. Error: (unknown) (@test-formats.R#24)  ───────────────────────────────────
  This model has 4 matrices, but the backend has returned 0 values
  Backtrace:
   1. gwsem::GWAS(...)
   2. OpenMx::mxRun(model)
   3. OpenMx:::runHelper(...)
   4. OpenMx:::updateModelMatrices(model, flatModel, output$matrices)
  
  Error: C stack usage  273650804 is too close to the limit
  ── 3. Error: gxe data roundtrip (@test-gxe.R#36)  ──────────────────────────────
  This model has 7 matrices, but the backend has returned 0 values
  Backtrace:
   1. gwsem::GWAS(...)
   2. OpenMx::mxRun(model)
   3. OpenMx:::runHelper(...)
   4. OpenMx:::updateModelMatrices(model, flatModel, output$matrices)
  
  ── 4. Error: (unknown) (@test-model.R#75)  ─────────────────────────────────────
  incompatible dimensions
  Backtrace:
   1. testthat::expect_equal(cor(ml$P, pgen$P), 1, tolerance = 0.001)
   4. stats::cor(ml$P, pgen$P)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 16 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 4 ]
  1. Error: (unknown) (@test-covariate.R#36) 
  2. Error: (unknown) (@test-formats.R#24) 
  3. Error: gxe data roundtrip (@test-gxe.R#36) 
  4. Error: (unknown) (@test-model.R#75) 
  
  Error: testthat unit tests failed
  Execution halted