Running ‘testthat.R’ [20s/28s]
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#479)  ─────────────
  vcov(fit1a) not equal to vcov(fit1b)[names1, names1].
  4/25 mismatches (average diff: 0.104)
  [13]  0.1202 - -3.14e-12 ==  0.120
  [14] -0.1033 -  1.30e-11 == -0.103
  [18] -0.1033 -  1.30e-11 == -0.103
  [19]  0.0891 -  8.98e-05 ==  0.089
  
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#515)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  21/64 mismatches (average diff: 0.035)
  [19]  2.74e-02 -  2.14e-02 ==  0.00592
  [20] -2.27e-03 - -1.90e-02 ==  0.01673
  [21] -1.41e-02 - -2.42e-11 == -0.01405
  [22]  1.19e-02 - -2.00e-04 ==  0.01213
  [24] -7.09e-09 - -1.11e-02 ==  0.01114
  [27] -2.27e-03 - -1.90e-02 ==  0.01673
  [28]  1.24e-01 -  4.79e-02 ==  0.07630
  [29]  1.97e-03 -  3.17e-11 ==  0.00197
  [30] -1.41e-03 - -5.19e-06 == -0.00141
  ...
  
  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.>
  ── 3. Error: metaFIML() works correctly (@test_utilities.R#521)  ───────────────
  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>
  ── 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: 87 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#479) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#515) 
  3. Error: metaFIML() works correctly (@test_utilities.R#521) 
  4. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted