Running ‘testthat.R’ [12s/12s]
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. 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: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 2.01 == -0.000753
  
  
  6. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - 10.7 == -2.66
  
  
  7. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  4/4 mismatches (average diff: 0.45)
  [1] 0.0407 - 1.6266 == -1.585842
  [2] 0.0667 - 0.2478 == -0.181106
  [3] 0.0123 - 0.0436 == -0.031351
  [4] 0.0140 - 0.0138 ==  0.000233
  
  
  8. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  16/16 mismatches (average diff: 450199)
  [1]  0.0291 - -2.22e+03 ==    2215.7
  [2] -0.0222 - -3.38e+06 == 3376991.4
  [3]  0.0000 - -2.31e+01 ==      23.1
  [4]  0.0000 -  4.36e+02 ==    -436.3
  [5] -0.0222 - -3.38e+06 == 3376991.4
  [6] -0.0111 -  6.33e+02 ==    -633.0
  [7]  0.0000 -  3.54e+02 ==    -354.4
  [8]  0.0000 -  2.22e+05 == -222361.1
  [9]  0.0000 - -2.31e+01 ==      23.1
  ...
  
  
  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