Running ‘testthat.R’ [30s/30s]
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#28) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 0.5 - 0.499 == 0.00073
  
  
  2. Failure: univariatePrior (@test-prior.R#28) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 2.1 - -46.5 == 48.6
  
  
  3. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] 2.01 - 0.826 == 1.18
  
  
  4. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - -436 == 444
  
  
  5. Error: uniquenessPrior (@test-prior.R#54) -----------------------------------
  Requested improper index (1) from vector of Rf_length (0).
  1: checkAnalyticDeriv(omxAssignFirstParameters(m1)) at testthat/test-prior.R:54
  2: mxRun(mxModel(m1, mxComputeSequence(list(mxComputeNumericDeriv(checkGradient = FALSE), 
         mxComputeReportDeriv()))), silent = TRUE) at testthat/test-prior.R:10
  3: runHelper(model, frontendStart, intervals, silent, suppressWarnings, unsafe, checkpoint, 
         useSocket, onlyFrontend, useOptimizer)
  
  testthat results ================================================================
  OK: 3 SKIPPED: 0 FAILED: 5
  1. Failure: univariatePrior (@test-prior.R#28) 
  2. Failure: univariatePrior (@test-prior.R#28) 
  3. Failure: univariatePrior (@test-prior.R#32) 
  4. Failure: univariatePrior (@test-prior.R#32) 
  5. Error: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  Execution halted