Running ‘testthat.R’ [18s/21s]
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: 5.51e+08)
  [1]  1.49e-05 -        NA ==        NA
  [2] -4.34e-11 -        NA ==        NA
  [3] -7.51e-06 -        NA ==        NA
  [4] -7.89e-06 -        NA ==        NA
  [5]  5.02e-07 -        NA ==        NA
  [6] -4.34e-11 -        NA ==        NA
  [7] -4.30e-15 -  1.66e+09 == -1.66e+09
  [8] -5.71e-10 -        NA ==        NA
  [9] -5.84e-10 - -8.26e+08 ==  8.26e+08
  ...
  
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#511)  ─────────────
  `coef2a` not equal to `coef2b`.
  9/9 mismatches (average diff: 60.2)
  [1]   0.0156 -   0.1 ==   -0.0844
  [2]   0.0039 -   0.1 ==   -0.0961
  [3]   0.0249 -   0.1 ==   -0.0751
  [4] 360.1699 - 818.0 == -457.8301
  [5]  -0.4919 -   0.1 ==   -0.5919
  [6]   0.5915 -   0.1 ==    0.4915
  [7]  -0.3251 -   0.1 ==   -0.4251
  [8]   0.8648 -   0.1 ==    0.7648
  [9]  81.8361 -   0.1 ==   81.7361
  
  ── 3. Error: metaFIML() works correctly (@test_utilities.R#513)  ───────────────
  infinite or missing values in 'x'
  Backtrace:
   1. stats::vcov(fit2a)
   2. metaSEM::vcov.meta(fit2a)
   3. metaSEM:::.solve(...)
   4. MASS::ginv(x)
   5. base::svd(X)
  
  Error: C stack usage  212243604 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: 85 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 4 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#479) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#511) 
  3. Error: metaFIML() works correctly (@test_utilities.R#513) 
  4. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted