Running ‘testthat.R’ [23s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(metaSEM)
  Loading required package: OpenMx
  To take full advantage of multiple cores, use:
    mxOption(key='Number of Threads', value=parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  "SLSQP" is set as the default optimizer in OpenMx.
  mxOption(NULL, "Gradient algorithm") is set at "central".
  mxOption(NULL, "Optimality tolerance") is set at "6.3e-14".
  mxOption(NULL, "Gradient iterations") is set at "2".
  > 
  > test_check("metaSEM")
  ── 1. Failure: metaFIML() works correctly (@test_utilities.R#582)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  6/64 mismatches (average diff: 0.987)
  [19] 4.10e-06 -  0.01388 == -0.01388
  [24] 5.17e-08 - -0.02889 ==  0.02889
  [48] 8.22e-08 - -0.00821 ==  0.00821
  [59] 5.17e-08 - -0.02889 ==  0.02889
  [62] 8.22e-08 - -0.00821 ==  0.00821
  [64] 6.53e-10 -  5.83370 == -5.83370
  
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#619)  ─────────────
  `coef3a` not equal to `coef3b`.
  9/9 mismatches (average diff: 0.0673)
  [1]  0.1000 -  0.00431 ==  0.0957
  [2]  0.1000 -  0.00324 ==  0.0968
  [3]  0.1000 -  0.00725 ==  0.0928
  [4]  1.0000 -  0.96839 ==  0.0316
  [5] -0.0606 - -0.02197 == -0.0387
  [6] -0.0606 - -0.03498 == -0.0256
  [7]  0.1000 -  0.00147 ==  0.0985
  [8]  0.1000 -  0.06895 ==  0.0311
  [9]  0.1000 -  0.00461 ==  0.0954
  
  ── 3. Failure: metaFIML() works correctly (@test_utilities.R#621)  ─────────────
  fit3a$mx.fit$output$Minus2LogLikelihood not equal to fit3b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 85.6 - -62.3 == 148
  
  Error: C stack usage  279221396 is too close to the limit
  <simpleError: The job for model 'TSSEM1 Correlation' exited abnormally with the error message: User interrupt>
  ── 4. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.
  The job for model 'TSSEM1 Correlation' exited abnormally with the error message: User interrupt
  Backtrace:
   1. metaSEM::tssem1(Cov = list(C1, C2, C3), n = c(50, 50, 50), method = "FEM")
   2. metaSEM::tssem1FEM(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 95 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 4 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#582) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#619) 
  3. Failure: metaFIML() works correctly (@test_utilities.R#621) 
  4. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#644) 
  
  Error: testthat unit tests failed
  Execution halted