Running ‘testthat.R’ [21s/28s]
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: C stack usage  279745684 is too close to the limit
  <simpleError: The job for model 'Asymptotic covariance matrix of correlation matrix' exited abnormally with the error message: User interrupt>
  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.>
  Error: C stack usage  279745684 is too close to the limit
  <simpleError: The job for model 'TSSEM1 Correlation' exited abnormally with the error message: User interrupt>
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test_utilities.R:568:5): metaFIML() works correctly ────────────────
  Error in solving the Hessian matrix. Generalized inverse is used. The standard errors may not be trustworthy.
  
  Backtrace:
   1. testthat::expect_equal(...) test_utilities.R:568:4
   6. metaSEM::vcov.meta(fit1a)
   7. metaSEM:::.solve(...)
  ── Warning (test_utilities.R:602:5): metaFIML() works correctly ────────────────
  Error in solving the Hessian matrix. Generalized inverse is used. The standard errors may not be trustworthy.
  
  Backtrace:
   1. stats::vcov(fit2a) test_utilities.R:602:4
   3. metaSEM::vcov.meta(fit2a)
   4. metaSEM:::.solve(...)
  ── Warning (test_utilities.R:642:5): metaFIML() works correctly ────────────────
  Error in solving the Hessian matrix. Generalized inverse is used. The standard errors may not be trustworthy.
  
  Backtrace:
   1. testthat::expect_equal(...) test_utilities.R:642:4
   6. metaSEM::vcov.meta(fit3a)
   7. metaSEM:::.solve(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_utilities.R:336:5): Cor2DataFrame() works correctly ─────────────
  Error: The job for model 'Asymptotic covariance matrix of correlation matrix' exited abnormally with the error message: User interrupt
  Backtrace:
      █
   1. └─metaSEM::Cor2DataFrame(Nohe15A1$data, Nohe15A1$n) test_utilities.R:336:4
   2.   └─metaSEM::asyCov(...)
   3.     └─base::mapply(...)
   4.       └─(function (x, n, cor.analysis = TRUE, dropNA = FALSE, as.matrix = TRUE, ...
  ── Failure (test_utilities.R:600:5): metaFIML() works correctly ────────────────
  `coef2a` not equal to `coef2b`.
  9/9 mismatches (average diff: 18.7)
  [1]   0.100 -   0.0156 == 8.44e-02
  [2]   0.100 -   0.0039 == 9.61e-02
  [3]   0.070 -   0.0249 == 4.51e-02
  [4] 527.280 - 360.1698 == 1.67e+02
  [5]   0.100 -  -0.4919 == 5.92e-01
  [6]   0.692 -   0.5915 == 1.01e-01
  [7]   0.100 -  -0.3251 == 4.25e-01
  [8]   0.870 -   0.8648 == 5.17e-03
  [9]  81.840 -  81.8361 == 3.93e-03
  ── Failure (test_utilities.R:604:5): metaFIML() works correctly ────────────────
  `v_fit2a` not equal to `v_fit2b`.
  64/64 mismatches (average diff: 2.64e+11)
  [1]  9.38e-13 -  5.74e+11 == -5.74e+11
  [2] -6.63e-13 - -2.95e+11 ==  2.95e+11
  [3] -6.63e-13 -        NA ==        NA
  [4] -3.99e-13 - -3.61e+11 ==  3.61e+11
  [5] -4.01e-13 -        NA ==        NA
  [6] -4.01e-13 -        NA ==        NA
  [7] -4.00e-13 - -2.51e+11 ==  2.51e+11
  [8] -4.87e-15 - -3.14e+09 ==  3.14e+09
  [9] -6.63e-13 - -2.95e+11 ==  2.95e+11
  ...
  ── Failure (test_utilities.R:605:5): metaFIML() works correctly ────────────────
  fit2a$mx.fit$output$Minus2LogLikelihood not equal to fit2b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 647 - 375 == 272
  ── Failure (test_utilities.R:641:5): metaFIML() works correctly ────────────────
  `coef3a` not equal to `coef3b`.
  9/9 mismatches (average diff: 0.0673)
  [1]  0.1000 -  0.00431 ==  0.0957
  [2]  0.1000 -  0.00324 ==  0.0968
  [3]  0.1000 -  0.00725 ==  0.0928
  [4]  1.0000 -  0.96839 ==  0.0316
  [5] -0.0606 - -0.02197 == -0.0387
  [6] -0.0606 - -0.03498 == -0.0256
  [7]  0.1000 -  0.00147 ==  0.0985
  [8]  0.1000 -  0.06895 ==  0.0311
  [9]  0.1000 -  0.00461 ==  0.0954
  ── Failure (test_utilities.R:643:5): metaFIML() works correctly ────────────────
  fit3a$mx.fit$output$Minus2LogLikelihood not equal to fit3b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 85.6 - -62.3 == 148
  ── Error (test_utilities.R:666:5): Handling NA in diagonals in tssem1FEM() correctly ──
  Error: 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") test_utilities.R:666:4
   2.   └─metaSEM::tssem1FEM(...)
  
  [ FAIL 7 | WARN 3 | SKIP 0 | PASS 93 ]
  Error: Test failures
  Execution halted