Running ‘testthat.R’ [64s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(thurstonianIRT)
  Loading required package: Rcpp
  > 
  > test_check("thurstonianIRT")
  ── 1. Error: lavaan code for gaussian responses works (@tests.lavaan.R#41)  ────
  NA/NaN gradient evaluation
  Backtrace:
   1. base::suppressWarnings(fit_TIRT_lavaan(sdata))
   3. thurstonianIRT::fit_TIRT_lavaan(sdata)
   4. lavaan::lavaan(...)
   5. lavaan:::lav_model_estimate(...)
   6. stats::nlminb(...)
  
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000213 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 2.13 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 1.42735 seconds (Warm-up)
  Chain 1:                1.00646 seconds (Sampling)
  Chain 1:                2.4338 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 7.4e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.74 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.148672 seconds (Warm-up)
  Chain 1:                0.114172 seconds (Sampling)
  Chain 1:                0.262844 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000349 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 3.49 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 3.51208 seconds (Warm-up)
  Chain 1:                2.53357 seconds (Sampling)
  Chain 1:                6.04565 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000109 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.09 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.335403 seconds (Warm-up)
  Chain 1:                0.285146 seconds (Sampling)
  Chain 1:                0.620549 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000161 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.61 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 1.75445 seconds (Warm-up)
  Chain 1:                1.43666 seconds (Sampling)
  Chain 1:                3.19111 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 6.6e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.66 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:   1 / 500 [  0%]  (Warmup)
  Chain 1: Iteration:  50 / 500 [ 10%]  (Warmup)
  Chain 1: Iteration: 100 / 500 [ 20%]  (Warmup)
  Chain 1: Iteration: 150 / 500 [ 30%]  (Warmup)
  Chain 1: Iteration: 200 / 500 [ 40%]  (Warmup)
  Chain 1: Iteration: 250 / 500 [ 50%]  (Warmup)
  Chain 1: Iteration: 251 / 500 [ 50%]  (Sampling)
  Chain 1: Iteration: 300 / 500 [ 60%]  (Sampling)
  Chain 1: Iteration: 350 / 500 [ 70%]  (Sampling)
  Chain 1: Iteration: 400 / 500 [ 80%]  (Sampling)
  Chain 1: Iteration: 450 / 500 [ 90%]  (Sampling)
  Chain 1: Iteration: 500 / 500 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.079168 seconds (Warm-up)
  Chain 1:                0.071478 seconds (Sampling)
  Chain 1:                0.150646 seconds (Total)
  Chain 1: 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 24 | SKIPPED: 1 | WARNINGS: 3 | FAILED: 1 ]
  1. Error: lavaan code for gaussian responses works (@tests.lavaan.R#41) 
  
  Error: testthat unit tests failed
  Execution halted