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#479)  ─────────────
  vcov(fit1a) not equal to vcov(fit1b)[names1, names1].
  25/25 mismatches (average diff: 2e+09)
  [1]  2.58e-13 -  7.99e+09 == -7.99e+09
  [2]  9.26e-12 - -4.00e+09 ==  4.00e+09
  [3]  1.59e-11 -        NA ==        NA
  [4]  1.65e-11 - -4.00e+09 ==  4.00e+09
  [5] -4.88e-12 - -4.00e+09 ==  4.00e+09
  [6]  9.26e-12 - -4.00e+09 ==  4.00e+09
  [7]  3.33e-10 -  4.84e+06 == -4.84e+06
  [8]  3.80e-11 -        NA ==        NA
  [9]  5.18e-11 - -4.11e+03 ==  4.11e+03
  ...
  
  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#515)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  19/64 mismatches (average diff: 0.345)
  [19] -1.35e-10 -  0.02735 == -0.02735
  [20]  3.66e-11 - -0.00227 ==  0.00227
  [21]  4.00e-11 - -0.01405 ==  0.01405
  [22]  4.07e-11 -  0.01193 == -0.01193
  [27]  3.66e-11 - -0.00227 ==  0.00227
  [28]  4.28e-06 -  0.12418 == -0.12417
  [29]  7.72e-06 -  0.00197 == -0.00196
  [30]  8.44e-06 - -0.00141 ==  0.00142
  [35]  4.00e-11 - -0.01405 ==  0.01405
  ...
  
  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: 90 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#479) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#515) 
  3. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted