Running ‘testthat.R’ [23s/29s]
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: Attempted to set row and column (1, 1) in algebra "No predictor.Smatrix[1]" with dimensions 0 x 0.>
  ── 1. Failure: metaFIML() works correctly (@test_utilities.R#582)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  23/64 mismatches (average diff: 0.286)
  [19]  1.17e-04 -  0.02307 == -0.02295
  [20]  1.15e-04 - -0.01882 ==  0.01893
  [21] -7.70e-05 - -0.01403 ==  0.01395
  [22] -1.07e-04 -  0.01187 == -0.01198
  [24]  1.11e-06 - -0.01108 ==  0.01109
  [27]  1.15e-04 - -0.01882 ==  0.01893
  [28]  1.13e-04 -  0.04790 == -0.04779
  [29] -7.65e-05 - -0.00160 ==  0.00152
  [30] -1.06e-04 -  0.00137 == -0.00148
  ...
  
  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>
  ── 2. 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: 97 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 2 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#582) 
  2. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#644) 
  
  Error: testthat unit tests failed
  Execution halted