Running ‘testthat.R’ [23s/31s]
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")
  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 3 rows, and argument #2 has 0 rows.>
  ── 1. Failure: metaFIML() works correctly (@test_utilities.R#546)  ─────────────
  vcov(fit1a) not equal to vcov(fit1b)[names1, names1].
  4/25 mismatches (average diff: 0.104)
  [13] -5.59e-12 -  0.1202 == -0.1202
  [14]  3.12e-12 - -0.1033 ==  0.1033
  [18]  3.12e-12 - -0.1033 ==  0.1033
  [19] -6.30e-12 -  0.0891 == -0.0891
  
  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.>
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#620)  ─────────────
  vcov(fit3a) not equal to vcov(fit3b)[names3, names3].
  81/81 mismatches (average diff: 3.67e+08)
  [1] -1.93e-11 -  2.53e+06 == -2.53e+06
  [2]  7.05e-12 - -2.12e+06 ==  2.12e+06
  [3]  7.05e-12 -  4.46e+05 == -4.46e+05
  [4]  7.05e-12 - -2.22e+01 ==  2.22e+01
  [5]  1.44e-11 -        NA ==        NA
  [6] -1.35e-12 - -1.47e+09 ==  1.47e+09
  [7]  1.62e-11 -  2.27e+04 == -2.27e+04
  [8] -7.20e-12 - -1.39e+04 ==  1.39e+04
  [9]  4.38e-12 - -5.30e+01 ==  5.30e+01
  ...
  
  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>
  ── 3. 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: 96 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#546) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#620) 
  3. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#644) 
  
  Error: testthat unit tests failed
  Execution halted