Running ‘testthat.R’ [567s/317s]
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] "/home/ripley/R/packages/tests32/ifaTools.Rcheck/tests/testthat"
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) ------------
  m1$output$fit - m2$output$fit not equal to 115.39.
  1/1 mismatches
  [1] 2860943 - 115 == 2860828
  
  
  2. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  1/1 mismatches
  [1] -8.66 - -8.5 == -0.16
  
  
  3. Failure: univariatePrior (@test-prior.R#24) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 51.1 - 6467 == -6415
  
  
  4. 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
  
  
  5. 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
  
  
  6. 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
  
  
  7. Failure: univariatePrior (@test-prior.R#32) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  1/1 mismatches
  [1] 8 - 14.2 == -6.21
  
  
  Warning: stack imbalance in '$', 94 then 98
  Warning: stack imbalance in '{', 92 then 93
  Warning: stack imbalance in '$', 82 then 88
  Error in get_reporter() : 
    R_Reprotect: only 93 protected items, can't reprotect index 95
  Calls: test_check ... source_file -> eval -> eval -> test_that -> test_code
  In addition: Warning message:
  Warning: stack imbalance in '$', 117 then 118
  In test_code(desc, code, env = parent.frame()) :
    restarting interrupted promise evaluation
  Warning: stack imbalance in '{', 111 then 112
  Warning: stack imbalance in 'lapply', 99 then 62
  Warning: stack imbalance in '{', 95 then 58
  Warning: stack imbalance in '{', 90 then 57
  
   *** caught segfault ***
  address 0, cause 'memory not mapped'