Running ‘testthat.R’ [17s/22s]
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: Non-conformable matrices in horizontal concatenation (cbind). First argument has 3 rows, and argument #2 has 0 rows.>
  ── 1. Failure: metaFIML() works correctly (@test_utilities.R#478)  ─────────────
  `coef1a` not equal to `coef1b`.
  5/5 mismatches (average diff: 0.142)
  [1] 0.100 -  0.01560 == 0.08440
  [2] 0.100 -  0.00391 == 0.09609
  [3] 0.692 -  0.59805 == 0.09415
  [4] 0.100 - -0.32955 == 0.42955
  [5] 0.870 -  0.86395 == 0.00605
  
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#480)  ─────────────
  fit1a$mx.fit$output$Minus2LogLikelihood not equal to fit1b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 111 - -155 == 266
  
  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.>
  ── 3. Failure: metaFIML() works correctly (@test_utilities.R#511)  ─────────────
  `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.1699 == 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
  
  ── 4. Failure: metaFIML() works correctly (@test_utilities.R#515)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  11/64 mismatches (average diff: 0.556)
  [19] -2.71e-12 -  0.0214 == -0.0214
  [20]  6.73e-13 - -0.0190 ==  0.0190
  [24]  5.51e-11 - -0.0111 ==  0.0111
  [27]  6.73e-13 - -0.0190 ==  0.0190
  [28] -1.47e-12 -  0.0479 == -0.0479
  [32]  5.28e-11 - -0.0447 ==  0.0447
  [48]  5.28e-11 - -0.0082 ==  0.0082
  [59]  5.51e-11 - -0.0111 ==  0.0111
  [60]  5.28e-11 - -0.0447 ==  0.0447
  ...
  
  ── 5. Failure: metaFIML() works correctly (@test_utilities.R#516)  ─────────────
  fit2a$mx.fit$output$Minus2LogLikelihood not equal to fit2b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 647 - 375 == 272
  
  ── 6. Failure: metaFIML() works correctly (@test_utilities.R#552)  ─────────────
  `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
  
  ── 7. Failure: metaFIML() works correctly (@test_utilities.R#554)  ─────────────
  fit3a$mx.fit$output$Minus2LogLikelihood not equal to fit3b$output$Minus2LogLikelihood.
  1/1 mismatches
  [1] 85.6 - -62.3 == 148
  
  Error: C stack usage  212505748 is too close to the limit
  <simpleError: The job for model 'TSSEM1 Correlation' exited abnormally with the error message: User interrupt>
  ── 8. 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: 3 | FAILED: 8 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#478) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#480) 
  3. Failure: metaFIML() works correctly (@test_utilities.R#511) 
  4. Failure: metaFIML() works correctly (@test_utilities.R#515) 
  5. Failure: metaFIML() works correctly (@test_utilities.R#516) 
  6. Failure: metaFIML() works correctly (@test_utilities.R#552) 
  7. Failure: metaFIML() works correctly (@test_utilities.R#554) 
  8. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#577) 
  
  Error: testthat unit tests failed
  Execution halted