Running ‘testthat.R’ [442s/274s]
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] -1034614 - 115 == -1034729
  
  
  2. 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
  
  
  3. 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
  
  
  4. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  4/4 mismatches (average diff: 10.7)
  [1] 0.0407 -  2.9477 ==  -2.90700
  [2] 0.0667 - 40.0309 == -39.96428
  [3] 0.0123 -  0.0466 ==  -0.03429
  [4] 0.0140 -  0.0192 ==  -0.00514
  
  
  5. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  16/16 mismatches (average diff: 780717)
  [1]  0.0291 -  -312077 ==   312077
  [2] -0.0222 -  3315375 == -3315375
  [3]  0.0000 -   191049 ==  -191049
  [4]  0.0000 -    19299 ==   -19299
  [5] -0.0222 -  3315375 == -3315375
  [6] -0.0111 - -3191312 ==  3191312
  [7]  0.0000 -   405004 ==  -405004
  [8]  0.0000 -   388013 ==  -388013
  [9]  0.0000 -   191049 ==  -191049
  ...
  
  
  testthat results ================================================================
  OK: 7 SKIPPED: 0 FAILED: 5
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) 
  2. Failure: univariatePrior (@test-prior.R#28) 
  3. Failure: univariatePrior (@test-prior.R#28) 
  4. Failure: uniquenessPrior (@test-prior.R#54) 
  5. Failure: uniquenessPrior (@test-prior.R#54) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In mxData(observed = data, type = "raw", numObs = sum(data[["freq"]]),  :
    numObs of 2844 does not match the number of observations found in the observed data 721 (maybe specify weight='column' instead of numObs = 2844 )
  Execution halted