Running ‘testthat.R’ [13s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(trialr)
  Loading required package: Rcpp
  > 
  > test_check("trialr")
  
  SAMPLING FOR MODEL 'CrmEmpiricNormalPrior' NOW (CHAIN 1).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:   1 / 500 [  0%]  (Warmup)
  Iteration:  50 / 500 [ 10%]  (Warmup)
  Iteration: 100 / 500 [ 20%]  (Warmup)
  Iteration: 150 / 500 [ 30%]  (Warmup)
  Iteration: 200 / 500 [ 40%]  (Warmup)
  Iteration: 250 / 500 [ 50%]  (Warmup)
  Iteration: 251 / 500 [ 50%]  (Sampling)
  Iteration: 300 / 500 [ 60%]  (Sampling)
  Iteration: 350 / 500 [ 70%]  (Sampling)
  Iteration: 400 / 500 [ 80%]  (Sampling)
  Iteration: 450 / 500 [ 90%]  (Sampling)
  Iteration: 500 / 500 [100%]  (Sampling)
  
   Elapsed Time: 0.02 seconds (Warm-up)
                 0.02 seconds (Sampling)
                 0.04 seconds (Total)
  
  
  SAMPLING FOR MODEL 'CrmEmpiricNormalPrior' NOW (CHAIN 2).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:   1 / 500 [  0%]  (Warmup)
  Iteration:  50 / 500 [ 10%]  (Warmup)
  Iteration: 100 / 500 [ 20%]  (Warmup)
  Iteration: 150 / 500 [ 30%]  (Warmup)
  Iteration: 200 / 500 [ 40%]  (Warmup)
  Iteration: 250 / 500 [ 50%]  (Warmup)
  Iteration: 251 / 500 [ 50%]  (Sampling)
  Iteration: 300 / 500 [ 60%]  (Sampling)
  Iteration: 350 / 500 [ 70%]  (Sampling)
  Iteration: 400 / 500 [ 80%]  (Sampling)
  Iteration: 450 / 500 [ 90%]  (Sampling)
  Iteration: 500 / 500 [100%]  (Sampling)
  
   Elapsed Time: 0.01 seconds (Warm-up)
                 0.02 seconds (Sampling)
                 0.03 seconds (Total)
  
  
  SAMPLING FOR MODEL 'CrmOneParamLogisticNormalPrior' NOW (CHAIN 1).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.06 seconds (Warm-up)
                 0.05 seconds (Sampling)
                 0.11 seconds (Total)
  
  
  SAMPLING FOR MODEL 'CrmOneParamLogisticNormalPrior' NOW (CHAIN 2).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.06 seconds (Warm-up)
                 0.06 seconds (Sampling)
                 0.12 seconds (Total)
  
  
  SAMPLING FOR MODEL 'CrmOneParamLogisticNormalPrior' NOW (CHAIN 3).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.05 seconds (Warm-up)
                 0.06 seconds (Sampling)
                 0.11 seconds (Total)
  
  
  SAMPLING FOR MODEL 'CrmOneParamLogisticNormalPrior' NOW (CHAIN 4).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.06 seconds (Warm-up)
                 0.05 seconds (Sampling)
                 0.11 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 1).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:   1 / 500 [  0%]  (Warmup)
  Iteration:  50 / 500 [ 10%]  (Warmup)
  Iteration: 100 / 500 [ 20%]  (Warmup)
  Iteration: 150 / 500 [ 30%]  (Warmup)
  Iteration: 200 / 500 [ 40%]  (Warmup)
  Iteration: 250 / 500 [ 50%]  (Warmup)
  Iteration: 251 / 500 [ 50%]  (Sampling)
  Iteration: 300 / 500 [ 60%]  (Sampling)
  Iteration: 350 / 500 [ 70%]  (Sampling)
  Iteration: 400 / 500 [ 80%]  (Sampling)
  Iteration: 450 / 500 [ 90%]  (Sampling)
  Iteration: 500 / 500 [100%]  (Sampling)
  
   Elapsed Time: 0.16 seconds (Warm-up)
                 0.09 seconds (Sampling)
                 0.25 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 2).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:   1 / 500 [  0%]  (Warmup)
  Iteration:  50 / 500 [ 10%]  (Warmup)
  Iteration: 100 / 500 [ 20%]  (Warmup)
  Iteration: 150 / 500 [ 30%]  (Warmup)
  Iteration: 200 / 500 [ 40%]  (Warmup)
  Iteration: 250 / 500 [ 50%]  (Warmup)
  Iteration: 251 / 500 [ 50%]  (Sampling)
  Iteration: 300 / 500 [ 60%]  (Sampling)
  Iteration: 350 / 500 [ 70%]  (Sampling)
  Iteration: 400 / 500 [ 80%]  (Sampling)
  Iteration: 450 / 500 [ 90%]  (Sampling)
  Iteration: 500 / 500 [100%]  (Sampling)
  
   Elapsed Time: 0.17 seconds (Warm-up)
                 0.07 seconds (Sampling)
                 0.24 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 1).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.41 seconds (Warm-up)
                 0.31 seconds (Sampling)
                 0.72 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 2).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.42 seconds (Warm-up)
                 0.31 seconds (Sampling)
                 0.73 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 3).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.41 seconds (Warm-up)
                 0.32 seconds (Sampling)
                 0.73 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 4).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.44 seconds (Warm-up)
                 0.26 seconds (Sampling)
                 0.7 seconds (Total)
  
  ── 1. Failure: Thall et al. (2014) model fits correctly to "1NNN 2ENN" (@test_st
  all(abs(mod$utility - c(-0.91, -0.47, 0.42, 0.64, 0.64)) < epsilon) isn't true.
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 1).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.4 seconds (Warm-up)
                 0.28 seconds (Sampling)
                 0.68 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 2).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.37 seconds (Warm-up)
                 0.28 seconds (Sampling)
                 0.65 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 3).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.38 seconds (Warm-up)
                 0.28 seconds (Sampling)
                 0.66 seconds (Total)
  
  
  SAMPLING FOR MODEL 'EffTox' NOW (CHAIN 4).
  
  Gradient evaluation took 0 seconds
  1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Adjust your expectations accordingly!
  
  
  Iteration:    1 / 2000 [  0%]  (Warmup)
  Iteration:  200 / 2000 [ 10%]  (Warmup)
  Iteration:  400 / 2000 [ 20%]  (Warmup)
  Iteration:  600 / 2000 [ 30%]  (Warmup)
  Iteration:  800 / 2000 [ 40%]  (Warmup)
  Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Iteration: 2000 / 2000 [100%]  (Sampling)
  
   Elapsed Time: 0.39 seconds (Warm-up)
                 0.28 seconds (Sampling)
                 0.67 seconds (Total)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 180 SKIPPED: 0 FAILED: 1
  1. Failure: Thall et al. (2014) model fits correctly to "1NNN 2ENN" (@test_stan_efftox.R#44) 
  
  Error: testthat unit tests failed
  Execution halted