Running ‘testthat.R’ [110s/102s]
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(NULL, 'Number of Threads', 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] "/home/ripley/R/packages/tests32/ifaTools.Rcheck/tests/testthat"
  ── 1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80)  ────────
  m1$output$fit - m2$output$fit not equal to 115.39.
  1/1 mismatches
  [1] 223 - 115 == 108
  
  ── 2. Error: uniquenessPrior (@test-prior.R#54)  ───────────────────────────────
  Element-wise '*' not conformable: 'alg161 arg 0' is 0x0 and 'alg161 arg 1' is 1x3
  alg161 arg 0 =  matrix(c(    # 0x0), byrow=TRUE, nrow=0, ncol=0)
  alg161 arg 1 =  matrix(c(    # 1x3
     2,   5, 7.9999), byrow=TRUE, nrow=1, ncol=3)
  1: checkAnalyticDeriv(omxAssignFirstParameters(m1)) at testthat/test-prior.R:54
  2: mxRun(mxModel(m1, mxComputeSequence(list(mxComputeNumericDeriv(checkGradient = FALSE), 
         mxComputeReportDeriv()))), silent = TRUE) at testthat/test-prior.R:10
  3: runHelper(model, frontendStart, intervals, silent, suppressWarnings, unsafe, checkpoint, 
         useSocket, onlyFrontend, useOptimizer)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 8 SKIPPED: 0 FAILED: 2
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) 
  2. Error: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted