Running 'testthat.R' [58s/69s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(thurstonianIRT)
  Loading required package: Rcpp
  > 
  > test_check("thurstonianIRT")
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000305 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 3.05 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.04393 seconds (Warm-up)
  Chain 1:                0.679861 seconds (Sampling)
  Chain 1:                1.72379 seconds (Total)
  Chain 1: 
  -- 1. Error: Stan code for bernoulli responses works (@tests.stan.R#17)  -------
  'where' must be an environment
  Backtrace:
    1. stats::predict(fit)
    2. thurstonianIRT:::predict.TIRTfit(fit)
    3. tibble::rownames_to_column(., var = "par")
    3. dplyr::rename(...)
    3. dplyr::select(., "par", "estimate", "se", "lower_ci", "upper_ci")
   10. tidyr::extract(...)
   11. ellipsis::check_dots_used()
   13. ellipsis:::exit_handler(action)
   14. base::bquote(...)
  
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000271 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 2.71 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.4471 seconds (Warm-up)
  Chain 1:                1.43666 seconds (Sampling)
  Chain 1:                4.88376 seconds (Total)
  Chain 1: 
  -- 2. Error: Stan code for ordinal responses works (@tests.stan.R#44)  ---------
  'where' must be an environment
  Backtrace:
    1. stats::predict(fit)
    2. thurstonianIRT:::predict.TIRTfit(fit)
    3. tibble::rownames_to_column(., var = "par")
    3. dplyr::rename(...)
    3. dplyr::select(., "par", "estimate", "se", "lower_ci", "upper_ci")
   10. tidyr::extract(...)
   11. ellipsis::check_dots_used()
   13. ellipsis:::exit_handler(action)
   14. base::bquote(...)
  
  
  SAMPLING FOR MODEL 'thurstonian_irt_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000142 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.42 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.63486 seconds (Warm-up)
  Chain 1:                1.21085 seconds (Sampling)
  Chain 1:                2.84572 seconds (Total)
  Chain 1: 
  -- 3. Error: Stan code for gaussian responses works (@tests.stan.R#64)  --------
  'where' must be an environment
  Backtrace:
    1. stats::predict(fit)
    2. thurstonianIRT:::predict.TIRTfit(fit)
    3. tibble::rownames_to_column(., var = "par")
    3. dplyr::rename(...)
    3. dplyr::select(., "par", "estimate", "se", "lower_ci", "upper_ci")
   10. tidyr::extract(...)
   11. ellipsis::check_dots_used()
   13. ellipsis:::exit_handler(action)
   14. base::bquote(...)
  
  == testthat results  ===========================================================
  [ OK: 11 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: Stan code for bernoulli responses works (@tests.stan.R#17) 
  2. Error: Stan code for ordinal responses works (@tests.stan.R#44) 
  3. Error: Stan code for gaussian responses works (@tests.stan.R#64) 
  
  Error: testthat unit tests failed
  Execution halted