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.00267
  
  
  2. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 0.5 - 0.469 == 0.0312
  
  
  3. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 2.1 - 4998 == -4996
  
  
  4. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 1.97 == 0.0377
  
  
  5. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - -1465 == 1473
  
  
  6. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  4/4 mismatches (average diff: 0.312)
  [1] 0.0407 -  0.389 == -0.34843
  [2] 0.0667 -  0.340 == -0.27373
  [3] 0.0123 - -0.610 ==  0.62197
  [4] 0.0140 -  0.019 == -0.00498
  
  
  7. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  16/16 mismatches (average diff: 26280)
  [1]  0.0291 - 179869 == -179869
  [2] -0.0222 - -42410 ==   42409
  [3]  0.0000 - -38089 ==   38089
  [4]  0.0000 - -11440 ==   11440
  [5] -0.0222 - -42410 ==   42409
  [6] -0.0111 -  -2302 ==    2302
  [7]  0.0000 - -19805 ==   19805
  [8]  0.0000 -   -401 ==     401
  [9]  0.0000 - -38089 ==   38089
  ...
  
  
  testthat results ================================================================
  OK: 2 SKIPPED: 0 FAILED: 7
  1. Failure: univariatePrior (@test-prior.R#24) 
  2. Failure: univariatePrior (@test-prior.R#28) 
  3. Failure: univariatePrior (@test-prior.R#28) 
  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