Running 'testthat.R' [136s]
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-formats.R:34: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:34:0
   3. gwsem::buildOneFac(pheno, paste0("i", 1:numIndicators))
   4. gwsem:::postprocessModel(oneFacPre, itemNames, exoPred)
  -- Warning (test-formats.R:56: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:56:0
   3. gwsem::buildOneFac(pheno, paste0("i", 1:numIndicators))
   4. gwsem:::postprocessModel(oneFacPre, itemNames, exoPred)
  -- Warning (test-formats.R:72: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:72: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)
  -- Warning (test-gxe.R:44:3): gxe data roundtrip -------------------------------
  Data already contains placeholder data for the 'snp' column. This is okay for testing, but generally not recommended
  Backtrace:
   1. gwsem::buildItem(pheno, paste0("i", 3), gxe = c("sex", "i4")) test-gxe.R:44:2
   2. gwsem:::addPlaceholderSNP(phenoData)
  -- Warning (test-gxe.R:44: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:44:2
   2. gwsem:::postprocessModel(model, depVar, latents)
  
  == Failed tests ================================================================
  -- Failure (test-covariate.R:115:3): (code run outside of `test_that()`) -------
  cor(m1o[mask, "Z"], m2o[mask, "Z"]) not equivalent to 1.
  1/1 mismatches
  [1] 0.781 - 1 == -0.219
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 189 ]
  Error: Test failures
  Execution halted