Running ‘testthat.R’ [41s/61s]
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 9.6e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.96 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.749363 seconds (Warm-up)
  Chain 1:                0.532756 seconds (Sampling)
  Chain 1:                1.28212 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.000179 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.79 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: 2.1284 seconds (Warm-up)
  Chain 1:                1.15887 seconds (Sampling)
  Chain 1:                3.28727 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.000111 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.11 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.36899 seconds (Warm-up)
  Chain 1:                0.883098 seconds (Sampling)
  Chain 1:                2.25209 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