Running ‘testthat.R’ [168s/229s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(rmdcev)
  Loading required package: Rcpp
  This is rmdcev version 1.2.2
  > test_check("rmdcev")
  
  SAMPLING FOR MODEL 'mdcev' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.02 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 200 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.74 seconds (Warm-up)
  Chain 1:                0.17 seconds (Sampling)
  Chain 1:                0.91 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.01 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 100 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.09 seconds (Warm-up)
  Chain 1:                0.1 seconds (Sampling)
  Chain 1:                0.19 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.01 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 100 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 2.79 seconds (Warm-up)
  Chain 1:                0.15 seconds (Sampling)
  Chain 1:                2.94 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: Rejecting initial value:
  Chain 1:   Log probability evaluates to log(0), i.e. negative infinity.
  Chain 1:   Stan can't start sampling from this initial value.
  Chain 1: Rejecting initial value:
  Chain 1:   Log probability evaluates to log(0), i.e. negative infinity.
  Chain 1:   Stan can't start sampling from this initial value.
  Chain 1: Rejecting initial value:
  Chain 1:   Log probability evaluates to log(0), i.e. negative infinity.
  Chain 1:   Stan can't start sampling from this initial value.
  Chain 1: 
  Chain 1: Gradient evaluation took 0.01 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 100 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 4.2 seconds (Warm-up)
  Chain 1:                0.32 seconds (Sampling)
  Chain 1:                4.52 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' 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: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.47 seconds (Warm-up)
  Chain 1:                0.26 seconds (Sampling)
  Chain 1:                0.73 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev' 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: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.15 seconds (Warm-up)
  Chain 1:                0.07 seconds (Sampling)
  Chain 1:                0.22 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.01 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 100 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.08 seconds (Warm-up)
  Chain 1:                0.08 seconds (Sampling)
  Chain 1:                0.16 seconds (Total)
  Chain 1: 
  [1] -2653.237037
  [1] 5467.65503
  [1] -2770.001937
  [1] -5073.714821
   [1]  39   0   2   0   0  45   0 279   0   0   0   0   0   0   0   0   0
  [1] 29.76689758
  ── 1. Failure: Conditional error hybrid draw (@test-simulations.R#209)  ────────
  abs(util - 29.56664) < tol isn't true.
  
               [,1]
  [1,] -41.67031269
  ── 2. Failure: Conditional error hybrid draw (@test-simulations.R#218)  ────────
  abs(wtp_err - (-41.56801)) < tol isn't true.
  
               [,1]
  [1,] -41.67031269
  ── 3. Failure: Conditional error hybrid draw (@test-simulations.R#225)  ────────
  abs(wtp_err - (-41.56801)) < tol isn't true.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 81 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Failure: Conditional error hybrid draw (@test-simulations.R#209) 
  2. Failure: Conditional error hybrid draw (@test-simulations.R#218) 
  3. Failure: Conditional error hybrid draw (@test-simulations.R#225) 
  
  Error: testthat unit tests failed
  Execution halted