Running ‘testthat.R’ [17s/20s]
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: 330013)
  [1]  1.55e-05 -  262590 ==  -262590
  [2] -3.06e-08 -    5834 ==    -5834
  [3] -1.26e-04 -      NA ==       NA
  [4]  1.05e-04 -    1933 ==    -1933
  [5]  3.90e-06 -   -6873 ==     6873
  [6] -3.06e-08 -    5834 ==    -5834
  [7]  8.37e-07 - 4843036 == -4843036
  [8] -1.58e-05 -      NA ==       NA
  [9]  1.41e-05 -   -4111 ==     4111
  ...
  
  ── 2. Error: metaFIML() works correctly (@test_utilities.R#513)  ───────────────
  infinite or missing values in 'x'
  1: vcov(fit2a) at testthat/test_utilities.R:513
  2: vcov.meta(fit2a)
  3: .solve(x = object$mx.fit@output$calculatedHessian, parameters = my.name)
  4: MASS::ginv(x)
  5: svd(X)
  6: stop("infinite or missing values in 'x'")
  
  Error: C stack usage  212112532 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
  1: tssem1(Cov = list(C1, C2, C3), n = c(50, 50, 50), method = "FEM") at testthat/test_utilities.R:577
  2: tssem1FEM(Cov = Cov, n = n, cor.analysis = cor.analysis, model.name = model.name, 
         cluster = cluster, suppressWarnings = suppressWarnings, silent = silent, run = run, 
         ...)
  3: warning(print(mx.fit))
  4: withRestarts({
         .Internal(.signalCondition(cond, message, call))
         .Internal(.dfltWarn(message, call))
     }, muffleWarning = function() NULL)
  5: withOneRestart(expr, restarts[[1L]])
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 86 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 3 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#479) 
  2. Error: metaFIML() works correctly (@test_utilities.R#513) 
  3. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted