Running ‘testthat.R’ [10s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ctsemOMX)
  Loading required package: ctsem
  Loading required package: Rcpp
  ctsem also changes in time, for manual run ctDocs(), for blog see https://cdriver.netlify.app/, for citation info run citation('ctsem'), for original OpenMx functionality install.packages('ctsemOMX'), and for discussion https://github.com/cdriveraus/ctsem/discussions
  Loading required package: OpenMx
  
  Attaching package: 'ctsemOMX'
  
  The following objects are masked from 'package:ctsem':
  
      ctFit, ctIndplot
  
  > pdf(NULL)
  >  test_check("ctsemOMX")
  Saving _problems/test-intervalise-12.R
  Saving _problems/test-kalmanVram-35.R
  Saving _problems/test-reshaping-30.R
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 0 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • empty test (3): , ,
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-intervalise.R:10:3'): intervals ────────────────────────────────
  Error in ``[.data.table`(data_long, , `:=`(discrete.time.point = 1:.N), by = id)`: attempt access index 8/8 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─ctsem::ctLongToWide(...) at test-intervalise.R:10:3
   2.   ├─data_long[, `:=`(discrete.time.point = 1:.N), by = id]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-kalmanVram.R:35:1'): time calc ─────────────────────────────────
  Error in ``[.data.table`(data_long, , `:=`(discrete.time.point = 1:.N), by = id)`: attempt access index 7/7 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─ctsemOMX::ctRefineTo(...) at test-kalmanVram.R:35:1
   2.   └─ctsemOMX::ctFit(datawide, m, nofit = TRUE, ...)
   3.     └─ctsem::ctLongToWide(...)
   4.       ├─data_long[, `:=`(discrete.time.point = 1:.N), by = id]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test-reshaping.R:29:3'): reshaping1 ─────────────────────────────────
  Error in ``[.data.table`(data_long, , `:=`(discrete.time.point = 1:.N), by = id)`: attempt access index 8/8 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─ctsem::ctLongToWide(...) at test-reshaping.R:29:3
   2.   ├─data_long[, `:=`(discrete.time.point = 1:.N), by = id]
   3.   └─data.table:::`[.data.table`(...)
  
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted