Running 'testthat.R' [54s]
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 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.435 seconds (Warm-up)
  Chain 1:                0.956 seconds (Sampling)
  Chain 1:                2.391 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.124 seconds (Warm-up)
  Chain 1:                0.094 seconds (Sampling)
  Chain 1:                0.218 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.666 seconds (Warm-up)
  Chain 1:                2.028 seconds (Sampling)
  Chain 1:                5.694 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.297 seconds (Warm-up)
  Chain 1:                0.421 seconds (Sampling)
  Chain 1:                0.718 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.622 seconds (Warm-up)
  Chain 1:                1.607 seconds (Sampling)
  Chain 1:                3.229 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'thurstonian_irt_model_newdata' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 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.078 seconds (Warm-up)
  Chain 1:                0.046 seconds (Sampling)
  Chain 1:                0.124 seconds (Total)
  Chain 1: 
  == testthat results  ===========================================================
  [ OK: 24 | SKIPPED: 1 | WARNINGS: 2 | FAILED: 1 ]
  1. Error: lavaan code for gaussian responses works (@tests.lavaan.R#41) 
  
  Error: testthat unit tests failed
  Execution halted