Running ‘testthat.R’
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
  Loading required package: digest
  Loading required package: MASS
  Loading required package: Matrix
  Loading required package: Rcpp
  To take full advantage of multiple cores, use:
    mxOption(NULL, 'Number of Threads', parallel::detectCores())
  
  Attaching package: 'OpenMx'
  
  The following objects are masked from 'package:Matrix':
  
      %&%, expm
  
  1. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 2.01 == -0.00031
  
  
  2. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - 14.2 == -6.21
  
  
  3. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/4 mismatches
  [3] 0.0123 - -0.0117 == 0.024
  
  
  4. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  14/16 mismatches (average diff: 10536)
  [2]  -0.022222 - -4.79e+03 ==  4.79e+03
  [3]   0.000000 - -5.79e+04 ==  5.79e+04
  [4]   0.000000 - -3.09e-03 ==  3.09e-03
  [5]  -0.022222 - -4.79e+03 ==  4.79e+03
  [7]   0.000000 -  1.00e+04 == -1.00e+04
  [8]   0.000000 -  9.28e-03 == -9.28e-03
  [9]   0.000000 - -5.79e+04 ==  5.79e+04
  [10]  0.000000 -  1.00e+04 == -1.00e+04
  [11]  0.000246 - -1.56e+03 ==  1.56e+03
  ...
  
  
  testthat results ================================================================
  OK: 5 SKIPPED: 0 FAILED: 4
  1. Failure: univariatePrior (@test-prior.R#32) 
  2. Failure: univariatePrior (@test-prior.R#32) 
  3. Failure: uniquenessPrior (@test-prior.R#54) 
  4. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted