Running ‘testthat.R’ [20s/26s]
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#545)  ─────────────
  `coef1a` not equal to `coef1b`.
  5/5 mismatches (average diff: 0.374)
  [1]  0.01560 - 0.1 == -0.0844
  [2]  0.00391 - 0.1 == -0.0961
  [3]  0.59805 - 0.1 ==  0.4981
  [4] -0.32955 - 0.1 == -0.4295
  [5]  0.86395 - 0.1 ==  0.7639
  
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#547)  ─────────────
  fit1a$mx.fit$output$Minus2LogLikelihood not equal to fit1b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] -155 - 185 == -341
  
  Error in running mxModel:
  <simpleError: The job for model 'No predictor' exited abnormally with the error message: Non-conformable matrices in horizontal concatenation (cbind). First argument has 4 rows, and argument #2 has 0 rows.>
  ── 3. Failure: metaFIML() works correctly (@test_utilities.R#582)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  64/64 mismatches (average diff: 6.32e+10)
  [1]  3.05e-12 - -1.15e+10 ==  1.15e+10
  [2] -7.15e-13 -  5.76e+09 == -5.76e+09
  [3] -7.15e-13 -  5.76e+09 == -5.76e+09
  [4] -7.15e-13 -  5.76e+09 == -5.76e+09
  [5] -7.15e-13 - -2.79e+11 ==  2.79e+11
  [6] -1.17e-12 -  5.76e+09 == -5.76e+09
  [7] -1.17e-12 -  5.76e+09 == -5.76e+09
  [8] -1.43e-14 -  7.04e+07 == -7.04e+07
  [9] -7.15e-13 -  5.76e+09 == -5.76e+09
  ...
  
  Error in running mxModel:
  <simpleError: The job for model 'Meta analysis with FIML' exited abnormally with the error message: Non-conformable matrices in horizontal concatenation (cbind). First argument has 4 rows, and argument #2 has 0 rows.>
  ── 4. Error: metaFIML() works correctly (@test_utilities.R#588)  ───────────────
  The job for model 'Meta analysis with FIML' exited abnormally with the error message: Non-conformable matrices in horizontal concatenation (cbind). First argument has 4 rows, and argument #2 has 0 rows.
  Backtrace:
   1. metaSEM::metaFIML(...)
  
  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>
  ── 5. 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: 92 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 5 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#545) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#547) 
  3. Failure: metaFIML() works correctly (@test_utilities.R#582) 
  4. Error: metaFIML() works correctly (@test_utilities.R#588) 
  5. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#644) 
  
  Error: testthat unit tests failed
  Execution halted