Running ‘testthat.R’ [25s/44s]
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  279483540 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  279483540 is too close to the limit
  <simpleError: The job for model 'TSSEM1 Correlation' exited abnormally with the error message: User interrupt>
  ══ 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`.
  11/64 mismatches (average diff: 0.556)
  [19]  3.03e-12 -  0.0214 == -0.0214
  [20]  3.46e-13 - -0.0190 ==  0.0190
  [24]  2.84e-11 - -0.0111 ==  0.0111
  [27]  3.46e-13 - -0.0190 ==  0.0190
  [28] -2.76e-12 -  0.0479 == -0.0479
  [32]  1.16e-10 - -0.0447 ==  0.0447
  [48]  1.16e-10 - -0.0082 ==  0.0082
  [59]  2.84e-11 - -0.0111 ==  0.0111
  [60]  1.16e-10 - -0.0447 ==  0.0447
  ...
  ── 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
  ── 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 5 | WARN 3 | SKIP 0 | PASS 95 ]
  Error: Test failures
  Execution halted