Running ‘testthat.R’ [83s/99s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(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
  > pdf(NULL)
  >  test_check("ctsem")
  Saving _problems/test-intervalise-12.R
  Saving _problems/test-reshaping-30.R
       [,1]   [,2]
  [1,]  "0"    "0"
  [2,]  "0" "diff"
       [,1]
  [1,]  "0"
         [,1]
  [1,]    "0"
  [2,] "cint"
  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
  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
  starting worker pid=2133466 on localhost:31896 at 15:35:16.115
  starting worker pid=2133467 on localhost:31896 at 15:35:16.398
  Loading required package: data.table
  Loading required package: data.table
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  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
  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
  starting worker pid=2193928 on localhost:33512 at 15:35:38.459
  starting worker pid=2193929 on localhost:33512 at 15:35:38.789
  Loading required package: data.table
  Loading required package: data.table
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  
  SAMPLING FOR MODEL 'ctsm' NOW (CHAIN 1).
  
  SAMPLING FOR MODEL 'ctsm' NOW (CHAIN 2).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.017387 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 173.87 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 2: 
  Chain 2: Gradient evaluation took 0.011818 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 118.18 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
  Chain 2: Iteration:   1 / 300 [  0%]  (Warmup)
  Chain 2: Iteration:  20 / 300 [  6%]  (Warmup)
  Chain 1: Iteration:  20 / 300 [  6%]  (Warmup)
  Chain 2: Iteration:  40 / 300 [ 13%]  (Warmup)
  Chain 2: Iteration:  60 / 300 [ 20%]  (Warmup)
  Chain 1: Iteration:  40 / 300 [ 13%]  (Warmup)
  Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
  Chain 2: Iteration:  80 / 300 [ 26%]  (Warmup)
  Chain 1: Iteration:  80 / 300 [ 26%]  (Warmup)
  Chain 1: Iteration: 100 / 300 [ 33%]  (Warmup)
  Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
  Chain 2: Iteration: 100 / 300 [ 33%]  (Warmup)
  Chain 1: Iteration: 140 / 300 [ 46%]  (Warmup)
  Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
  Chain 1: Iteration: 170 / 300 [ 56%]  (Sampling)
  Chain 2: Iteration: 120 / 300 [ 40%]  (Warmup)
  Chain 1: Iteration: 190 / 300 [ 63%]  (Sampling)
  Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
  Chain 2: Iteration: 140 / 300 [ 46%]  (Warmup)
  Chain 2: Iteration: 151 / 300 [ 50%]  (Sampling)
  Chain 2: Iteration: 170 / 300 [ 56%]  (Sampling)
  Chain 1: Iteration: 230 / 300 [ 76%]  (Sampling)
  Chain 1: Iteration: 250 / 300 [ 83%]  (Sampling)
  Chain 2: Iteration: 190 / 300 [ 63%]  (Sampling)
  Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
  Chain 2: Iteration: 210 / 300 [ 70%]  (Sampling)
  Chain 1: Iteration: 290 / 300 [ 96%]  (Sampling)
  Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 20.299 seconds (Warm-up)
  Chain 1:                11.846 seconds (Sampling)
  Chain 1:                32.145 seconds (Total)
  Chain 1: 
  Chain 2: Iteration: 230 / 300 [ 76%]  (Sampling)
  Chain 2: Iteration: 250 / 300 [ 83%]  (Sampling)
  Chain 2: Iteration: 270 / 300 [ 90%]  (Sampling)
  Chain 2: Iteration: 290 / 300 [ 96%]  (Sampling)
  Chain 2: Iteration: 300 / 300 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 25.776 seconds (Warm-up)
  Chain 2:                12.57 seconds (Sampling)
  Chain 2:                38.346 seconds (Total)
  Chain 2: 
  [ FAIL 2 | WARN 0 | SKIP 16 | PASS 6 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • empty test (16): , , , , , , , , , , , , , , ,
  
  ══ 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-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 2 | WARN 0 | SKIP 16 | PASS 6 ]
  Error:
  ! Test failures.
  Execution halted