Running ‘testthat.R’ [361s/315s]
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.
  Error: C stack usage  306746516 is too close to the limit
  Error: C stack usage  306746516 is too close to the limit
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-addExploratoryFactor.R:76:3): addExploratoryFactors ───────────
  In model 'container1' Optimizer returned a non-zero status code 5. The Hessian at the solution does not appear to be convex. See ?mxCheckIdentification for possible diagnosis (Mx status RED).
  Backtrace:
   1. OpenMx::mxRun(m1, silent = TRUE) test-addExploratoryFactor.R:76:2
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
   4. OpenMx:::npsolWarnings(...)
  ── Warning (test-addExploratoryFactor.R:87:3): addExploratoryFactors ───────────
  In model 'container2' Optimizer returned a non-zero status code 4. The major iteration limit was reached (Mx status BLUE).
  Backtrace:
   1. OpenMx::mxRun(m2, silent = TRUE) test-addExploratoryFactor.R:87:2
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
   4. OpenMx:::npsolWarnings(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-addExploratoryFactor.R:84:3): addExploratoryFactors ───────────
  m1p$output$fit not equal to 33454.39.
  1/1 mismatches
  [1] 66904 - 33454 == 33450
  ── Failure (test-addExploratoryFactor.R:96:3): addExploratoryFactors ───────────
  m2p$output$fit not equal to 33338.99.
  1/1 mismatches
  [1] 84292 - 33339 == 50953
  ── Error (test-prior.R:28:3): univariatePrior ──────────────────────────────────
  Error: The job for model 'univariatePrior' exited abnormally with the error message: User interrupt
  Backtrace:
      █
   1. └─ifaTools:::checkAnalyticDeriv(...) test-prior.R:28:2
   2.   └─OpenMx::mxRun(...) test-prior.R:10:2
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  ── Error (test-prior.R:54:3): uniquenessPrior ──────────────────────────────────
  Error: The job for model 'test' exited abnormally with the error message: User interrupt
  Backtrace:
      █
   1. └─ifaTools:::checkAnalyticDeriv(omxAssignFirstParameters(m1)) test-prior.R:54:2
   2.   └─OpenMx::mxRun(...) test-prior.R:10:2
   3.     └─OpenMx:::runHelper(...)
   4.       └─OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  [ FAIL 4 | WARN 2 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted