Running ‘testthat.R’ [301s/262s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # NOTE: This will not test an uninstalled package.
  > library(testthat)
  > test_check('ifaTools')
  Loading required package: ifaTools
  Loading required package: shiny
  Loading required package: ggplot2
  Loading required package: reshape2
  Loading required package: rpf
  Loading required package: parallel
  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)
  Welcome to ifaTools!
   Use itemModelExplorer() to explore item models.
   Use modelBuilder() to build an IFA model.
  ── 1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#84)  ────────
  m1p$output$fit not equal to 33454.39.
  1/1 mismatches
  [1] 79600 - 33454 == 46146
  
  ── 2. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#96)  ────────
  m2p$output$fit not equal to 33338.99.
  1/1 mismatches
  [1] 69275 - 33339 == 35936
  
  Error: C stack usage  308581524 is too close to the limit
  ── 3. Error: univariatePrior (@test-prior.R#24)  ───────────────────────────────
  The job for model 'univariatePrior' exited abnormally with the error message: User interrupt
  Backtrace:
   1. ifaTools:::checkAnalyticDeriv(...)
   2. OpenMx::mxRun(...)
   3. OpenMx:::runHelper(...)
   4. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  308581524 is too close to the limit
  ── 4. Error: uniquenessPrior (@test-prior.R#54)  ───────────────────────────────
  The job for model 'test' exited abnormally with the error message: User interrupt
  Backtrace:
   1. ifaTools:::checkAnalyticDeriv(omxAssignFirstParameters(m1))
   2. OpenMx::mxRun(...)
   3. OpenMx:::runHelper(...)
   4. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 4 ]
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#84) 
  2. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#96) 
  3. Error: univariatePrior (@test-prior.R#24) 
  4. Error: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted