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.0021
  
  
  2. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 51.1 - 62.6 == -11.5
  
  
  3. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 0.5 - 0.5 == -0.000187
  
  
  4. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 2.1 - 2.76 == -0.662
  
  
  5. 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
  
  
  6. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - 14.2 == -6.21
  
  
  7. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  4/4 mismatches (average diff: 1.49)
  [1] 0.0407 - -0.716 ==  0.757
  [2] 0.0667 -  0.806 == -0.740
  [3] 0.0123 -  4.434 == -4.422
  [4] 0.0140 - -0.014 ==  0.028
  
  
  8. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  16/16 mismatches (average diff: 123018)
  [1]  0.0291 -  119321 == -119321
  [2] -0.0222 -   20962 ==  -20962
  [3]  0.0000 - -486390 ==  486390
  [4]  0.0000 -   -6385 ==    6385
  [5] -0.0222 -   20962 ==  -20962
  [6] -0.0111 -   19266 ==  -19266
  [7]  0.0000 - -310646 ==  310646
  [8]  0.0000 -   -1824 ==    1824
  [9]  0.0000 - -486390 ==  486390
  ...
  
  
  testthat results ================================================================
  OK: 1 SKIPPED: 0 FAILED: 8
  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: univariatePrior (@test-prior.R#32) 
  6. Failure: univariatePrior (@test-prior.R#32) 
  7. Failure: uniquenessPrior (@test-prior.R#54) 
  8. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted