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#24) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] -8.66 - -8.66 == 0.00172
  
  
  2. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 51.1 - 16.7 == 34.4
  
  
  3. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 0.5 - 0.5 == -9.92e-05
  
  
  4. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 2.1 - 4.08 == -1.98
  
  
  5. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/4 mismatches
  [1] 0.0407 - 0.0485 == -0.00781
  
  
  6. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  9/16 mismatches (average diff: 6179)
  [1]   0.0291 -   326.91 ==   -326.88
  [2]  -0.0222 - 22725.77 == -22725.79
  [3]   0.0000 -     6.53 ==     -6.53
  [4]   0.0000 -   -20.43 ==     20.43
  [5]  -0.0222 - 22725.77 == -22725.79
  [7]   0.0000 - -4887.31 ==   4887.31
  [9]   0.0000 -     6.53 ==     -6.53
  [10]  0.0000 - -4887.31 ==   4887.31
  [13]  0.0000 -   -20.43 ==     20.43
  
  
  testthat results ================================================================
  OK: 3 SKIPPED: 0 FAILED: 6
  1. Failure: univariatePrior (@test-prior.R#24) 
  2. Failure: univariatePrior (@test-prior.R#24) 
  3. Failure: univariatePrior (@test-prior.R#28) 
  4. Failure: univariatePrior (@test-prior.R#28) 
  5. Failure: uniquenessPrior (@test-prior.R#54) 
  6. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted