Running ‘testthat.R’ [92s/146s]
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.5
  > test_check("rmdcev")
  
  SAMPLING FOR MODEL 'mdcev' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.004928 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 49.28 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.116 seconds (Warm-up)
  Chain 1:                0.047 seconds (Sampling)
  Chain 1:                0.163 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.004644 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 46.44 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.069 seconds (Warm-up)
  Chain 1:                0.072 seconds (Sampling)
  Chain 1:                0.141 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.004614 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 46.14 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.492 seconds (Warm-up)
  Chain 1:                0.167 seconds (Sampling)
  Chain 1:                2.659 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: 
  Chain 1: Gradient evaluation took 0.005587 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 55.87 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.731 seconds (Warm-up)
  Chain 1:                0.22 seconds (Sampling)
  Chain 1:                0.951 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.005336 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 53.36 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: 1.092 seconds (Warm-up)
  Chain 1:                0.038 seconds (Sampling)
  Chain 1:                1.13 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.005882 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 58.82 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.068 seconds (Warm-up)
  Chain 1:                0.031 seconds (Sampling)
  Chain 1:                0.099 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'mdcev_rp' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.004578 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 45.78 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.043 seconds (Warm-up)
  Chain 1:                0.04 seconds (Sampling)
  Chain 1:                0.083 seconds (Total)
  Chain 1: 
  [1] -2653.237028
  [1] 5467.655012
  [1] -2770.001936
  [1] 253.1987599
               [,1]
  [1,] -375.0261844
  [1] -5073.711652
   [1]  39   0   2   0   0  45   0 279   0   0   0   0   0   0   0   0   0
  [1] 0.6918206923
  [1] 30.22712316
               [,1]
  [1,] -41.92338352
               [,1]
  [1,] -41.92338352
  [ FAIL 3 | WARN 62 | SKIP 2 | PASS 82 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • empty test (2): 'test-data.R:24:1', 'test-kt_ee.R:253:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-simulations.R:211:2'): Conditional error hybrid draw ─────────
  abs(util - 29.58674801) < tol is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-simulations.R:220:2'): Conditional error hybrid draw ─────────
  abs(wtp_err - (-41.57857841)) < tol is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-simulations.R:227:2'): Conditional error hybrid draw ─────────
  abs(wtp_err - (-41.57857841)) < tol is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 3 | WARN 62 | SKIP 2 | PASS 82 ]
  Error: Test failures
  Execution halted