Running ‘testthat.R’ [367s/311s]
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())
  [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] -134498 - 115 == -134613
  
  
  2. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 2.01 == -0.000399
  
  
  3. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - 16 == -7.98
  
  
  4. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  10/16 mismatches (average diff: 121373)
  [2]  -0.02222 -   -853 ==     853
  [3]   0.00000 -   3628 ==   -3628
  [5]  -0.02222 -   -853 ==     853
  [7]   0.00000 - 598960 == -598960
  [8]   0.00000 -   1046 ==   -1046
  [9]   0.00000 -   3628 ==   -3628
  [10]  0.00000 - 598960 == -598960
  [12] -0.00172 -   2379 ==   -2379
  [14]  0.00000 -   1046 ==   -1046
  ...
  
  
  testthat results ================================================================
  OK: 8 SKIPPED: 0 FAILED: 4
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) 
  2. Failure: univariatePrior (@test-prior.R#32) 
  3. Failure: univariatePrior (@test-prior.R#32) 
  4. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted