Running ‘testthat.R’ [32s/32s]
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] -3634 - 115 == -3749
  
  
  2. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] -8.66 - -8.5 == -0.16
  
  
  3. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 51.1 - 6467 == -6415
  
  
  4. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 1.99 == 0.0213
  
  
  5. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - -1050 == 1058
  
  
  6. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  4/4 mismatches (average diff: 1.16)
  [1] 0.0407 - -0.20812 ==  0.24886
  [2] 0.0667 -  4.28095 == -4.21428
  [3] 0.0123 -  0.19886 == -0.18658
  [4] 0.0140 -  0.00632 ==  0.00772
  
  
  7. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  16/16 mismatches (average diff: 52223)
  [1]  0.0291 -  123129 == -123129
  [2] -0.0222 -  165844 == -165844
  [3]  0.0000 -    -252 ==     252
  [4]  0.0000 -   -7065 ==    7065
  [5] -0.0222 -  165844 == -165844
  [6] -0.0111 - -196629 ==  196629
  [7]  0.0000 -   -6492 ==    6492
  [8]  0.0000 -   39109 ==  -39109
  [9]  0.0000 -    -252 ==     252
  ...
  
  
  testthat results ================================================================
  OK: 5 SKIPPED: 0 FAILED: 7
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) 
  2. Failure: univariatePrior (@test-prior.R#24) 
  3. Failure: univariatePrior (@test-prior.R#24) 
  4. Failure: univariatePrior (@test-prior.R#32) 
  5. Failure: univariatePrior (@test-prior.R#32) 
  6. Failure: uniquenessPrior (@test-prior.R#54) 
  7. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted