Running ‘testthat.R’ [24s/35s]
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#546)  ─────────────
  vcov(fit1a) not equal to vcov(fit1b)[names1, names1].
  25/25 mismatches (average diff: 1.41e+11)
  [1]  8.58e-13 -        NA ==        NA
  [2]  1.49e-11 -        NA ==        NA
  [3]  2.52e-11 -        NA ==        NA
  [4]  2.63e-11 -        NA ==        NA
  [5] -7.81e-12 -        NA ==        NA
  [6]  1.49e-11 -        NA ==        NA
  [7]  2.57e-10 - -2.24e+11 ==  2.24e+11
  [8]  3.81e-11 -  2.48e+11 == -2.48e+11
  [9]  4.89e-11 -  1.46e+11 == -1.46e+11
  ...
  
  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.>
  ── 2. Failure: metaFIML() works correctly (@test_utilities.R#582)  ─────────────
  `v_fit2a` not equal to `v_fit2b`.
  3/64 mismatches (average diff: 1.93)
  [48] -5.46e-11 - -0.00862 ==  0.00862
  [62] -5.46e-11 - -0.00862 ==  0.00862
  [64]  2.18e-08 -  5.77357 == -5.77357
  
  Error: C stack usage  279221396 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
  Backtrace:
   1. metaSEM::tssem1(Cov = list(C1, C2, C3), n = c(50, 50, 50), method = "FEM")
   2. metaSEM::tssem1FEM(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 96 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: metaFIML() works correctly (@test_utilities.R#546) 
  2. Failure: metaFIML() works correctly (@test_utilities.R#582) 
  3. Error: Handling NA in diagonals in tssem1FEM() correctly (@test_utilities.R#644) 
  
  Error: testthat unit tests failed
  Execution halted