Running ‘testthat.R’ [35s/33s]
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] -68535 - 115 == -68650
  
  
  2. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$gradient not equal to m3$output$gradient.
  2/4 mismatches (average diff: 0.0573)
  [3] 0.0123 - 0.1267 == -0.11445
  [4] 0.0140 - 0.0139 ==  0.00018
  
  
  3. Failure: uniquenessPrior (@test-prior.R#54) ---------------------------------
  m2$output$hessian not equal to m3$output$hessian.
  12/16 mismatches (average diff: 770)
  [3]   0.000000 - -2607.18 == 2607.18
  [4]   0.000000 -    -6.47 ==    6.47
  [7]   0.000000 - -1303.59 == 1303.59
  [8]   0.000000 -    -3.24 ==    3.24
  [9]   0.000000 - -2607.18 == 2607.18
  [10]  0.000000 - -1303.59 == 1303.59
  [11]  0.000246 -   744.91 == -744.91
  [12] -0.001724 -  -326.82 ==  326.82
  [13]  0.000000 -    -6.47 ==    6.47
  ...
  
  
  testthat results ================================================================
  OK: 9 SKIPPED: 0 FAILED: 3
  1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80) 
  2. Failure: uniquenessPrior (@test-prior.R#54) 
  3. 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