Running ‘testthat.R’ [20s/23s]
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#478)  ─────────────
  `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#480)  ─────────────
  fit1a$mx.fit$output$Minus2LogLikelihood not equal to fit1b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] -155 - 185 == -341
  
  ── 3. Failure: metaFIML() works correctly (@test_utilities.R#515)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  11/64 mismatches (average diff: 0.556)
  [19]  1.17e-04 -  0.02166 == -0.02154
  [20]  1.15e-04 - -0.01952 ==  0.01963
  [24]  1.11e-06 - -0.01066 ==  0.01066
  [27]  1.15e-04 - -0.01952 ==  0.01963
  [28]  1.13e-04 -  0.04903 == -0.04892
  [32]  1.09e-06 - -0.04581 ==  0.04581
  [48] -9.74e-07 - -0.00822 ==  0.00822
  [59]  1.11e-06 - -0.01066 ==  0.01066
  [60]  1.09e-06 - -0.04581 ==  0.04581
  ...
  
  Error: C stack usage  212374676 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: 89 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 4 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#478) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#480) 
  3. Failure: metaFIML() works correctly (@test_utilities.R#515) 
  4. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted