Running ‘testthat.R’ [60s/51s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayestestR)
  > 
  > test_check("bayestestR")
  Starting 2 test processes.
  > test-BFBayesFactor.R: Multiple `BFBayesFactor` models detected - posteriors are extracted from
  > test-BFBayesFactor.R:   the first numerator model.
  > test-BFBayesFactor.R:   See help("get_parameters", package = "insight").
  > test-BFBayesFactor.R: Multiple `BFBayesFactor` models detected - posteriors are extracted from
  > test-BFBayesFactor.R:   the first numerator model.
  > test-BFBayesFactor.R:   See help("get_parameters", package = "insight").
  > test-BFBayesFactor.R: Multiple `BFBayesFactor` models detected - posteriors are extracted from
  > test-BFBayesFactor.R:   the first numerator model.
  > test-BFBayesFactor.R:   See help("get_parameters", package = "insight").
  Saving _problems/test-diagnostic_posterior-29.R
  > test-rope_range.R: Compiling Stan program...
  > test-rope_range.R: Start sampling
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1).
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: Gradient evaluation took 2.5e-05 seconds
  > test-rope_range.R: Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.25 seconds.
  > test-rope_range.R: Chain 1: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1:  Elapsed Time: 0.004 seconds (Warm-up)
  > test-rope_range.R: Chain 1:                0 seconds (Sampling)
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R:                0.004 seconds (Total)
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 2).
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: Gradient evaluation took 2e-06 seconds
  > test-rope_range.R: Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.02 seconds.
  > test-rope_range.R: Chain 2: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2:  Elapsed Time: 0.002 seconds (Warm-up)
  > test-rope_range.R: Chain 2:                0 seconds (Sampling)
  > test-rope_range.R: Chain 2:                0.002 seconds (Total)
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 3).
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: Gradient evaluation took 2e-06 seconds
  > test-rope_range.R: Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.02 seconds.
  > test-rope_range.R: Chain 3: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3:  Elapsed Time: 0.004 seconds (Warm-up)
  > test-rope_range.R: Chain 3:                0 seconds (Sampling)
  > test-rope_range.R: Chain 3:                0.004 seconds (Total)
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 4).
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: Gradient evaluation took 4e-06 seconds
  > test-rope_range.R: Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 0.04 seconds.
  > test-rope_range.R: Chain 4: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4:  Elapsed Time: 0.005 seconds (Warm-up)
  > test-rope_range.R: Chain 4:                0 seconds (Sampling)
  > test-rope_range.R: Chain 4:                0.005 seconds (Total)
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Compiling Stan program...
  > test-rope_range.R: Start sampling
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1).
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: Gradient evaluation took 5.8e-05 seconds
  > test-rope_range.R: Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.58 seconds.
  > test-rope_range.R: Chain 1: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: Chain 1:  Elapsed Time: 0.144 seconds (Warm-up)
  > test-rope_range.R: Chain 1:                0.011 seconds (Sampling)
  > test-rope_range.R: Chain 1:                0.155 seconds (Total)
  > test-rope_range.R: Chain 1: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 2).
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: Gradient evaluation took 1.1e-05 seconds
  > test-rope_range.R: Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.11 seconds.
  > test-rope_range.R: Chain 2: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 2: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 2: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: Chain 2:  Elapsed Time: 0.158 seconds (Warm-up)
  > test-rope_range.R: Chain 2:                0.013 seconds (Sampling)
  > test-rope_range.R: Chain 2:                0.171 seconds (Total)
  > test-rope_range.R: Chain 2: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 3).
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: Gradient evaluation took 1.2e-05 seconds
  > test-rope_range.R: Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.12 seconds.
  > test-rope_range.R: Chain 3: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 3: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 3: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: Chain 3:  Elapsed Time: 0.172 seconds (Warm-up)
  > test-rope_range.R: Chain 3:                0.01 seconds (Sampling)
  > test-rope_range.R: Chain 3:                0.182 seconds (Total)
  > test-rope_range.R: Chain 3: 
  > test-rope_range.R: 
  > test-rope_range.R: SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 4).
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: Gradient evaluation took 1.2e-05 seconds
  > test-rope_range.R: Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 0.12 seconds.
  > test-rope_range.R: Chain 4: Adjust your expectations accordingly!
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4: Iteration:   1 / 300 [  0%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  30 / 300 [ 10%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  60 / 300 [ 20%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration:  90 / 300 [ 30%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 120 / 300 [ 40%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 150 / 300 [ 50%]  (Warmup)
  > test-rope_range.R: Chain 4: Iteration: 151 / 300 [ 50%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 180 / 300 [ 60%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 210 / 300 [ 70%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 240 / 300 [ 80%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 270 / 300 [ 90%]  (Sampling)
  > test-rope_range.R: Chain 4: Iteration: 300 / 300 [100%]  (Sampling)
  > test-rope_range.R: Chain 4: 
  > test-rope_range.R: Chain 4:  Elapsed Time: 0.163 seconds (Warm-up)
  > test-rope_range.R: Chain 4:                0.01 seconds (Sampling)
  > test-rope_range.R: Chain 4:                0.173 seconds (Total)
  > test-rope_range.R: Chain 4: 
  [ FAIL 1 | WARN 0 | SKIP 82 | PASS 247 ]
  
  ══ Skipped tests (82) ══════════════════════════════════════════════════════════
  • On CRAN (76): 'test-bayesfactor_models.R:69:3',
    'test-bayesfactor_models.R:114:3', 'test-bayesfactor_models.R:150:3',
    'test-bayesfactor_restricted.R:68:3', 'test-bayesian_as_frequentist.R:1:1',
    'test-blavaan.R:2:3', 'test-brms.R:2:3', 'test-brms.R:69:3',
    'test-brms.R:148:3', 'test-brms.R:190:3', 'test-ci.R:34:3', 'test-ci.R:52:3',
    'test-bayesfactor_parameters.R:56:3', 'test-bayesfactor_parameters.R:96:3',
    'test-contr.R:2:3', 'test-contr.R:25:3', 'test-contr.R:59:3',
    'test-data.frame-with-rvar.R:3:3', 'test-data.frame-with-rvar.R:74:3',
    'test-describe_prior.R:3:3', 'test-describe_posterior.R:4:3',
    'test-describe_posterior.R:340:3', 'test-describe_posterior.R:358:3',
    'test-describe_posterior.R:378:3', 'test-describe_posterior.R:416:3',
    'test-describe_posterior.R:872:3', 'test-effective_sample.R:3:3',
    'test-equivalence_test.R:1:1', 'test-hdi.R:4:3', 'test-hdi.R:27:3',
    'test-hdi.R:46:3', 'test-hdi.R:65:3', 'test-map_estimate.R:24:3',
    'test-map_estimate.R:44:3', 'test-marginaleffects.R:1:1',
    'test-p_direction.R:39:3', 'test-p_direction.R:73:3', 'test-p_map.R:25:3',
    'test-p_map.R:42:3', 'test-p_rope.R:3:3', 'test-p_significance.R:39:3',
    'test-p_significance.R:53:3', 'test-p_significance.R:89:3',
    'test-point_estimate.R:3:3', 'test-point_estimate.R:20:3',
    'test-posterior.R:3:3', 'test-posterior.R:25:3', 'test-posterior.R:47:3',
    'test-posterior.R:69:3', 'test-posterior.R:91:3', 'test-posterior.R:114:3',
    'test-print.R:2:3', 'test-rope.R:126:3', 'test-rope.R:196:3',
    'test-rope.R:212:3', 'test-rope.R:224:3', 'test-rope.R:261:3',
    'test-emmGrid.R:132:3', 'test-emmGrid.R:142:3', 'test-emmGrid.R:172:3',
    'test-emmGrid.R:188:3', 'test-emmGrid.R:224:3', 'test-emmGrid.R:234:3',
    'test-rstanarm.R:2:3', 'test-rstanarm.R:55:3', 'test-rstanarm.R:99:3',
    'test-rstanarm.R:148:3', 'test-rstanarm.R:184:3', 'test-si.R:33:3',
    'test-spi.R:4:3', 'test-spi.R:27:3', 'test-spi.R:45:3', 'test-spi.R:64:3',
    'test-weighted_posteriors.R:4:3', 'test-weighted_posteriors.R:31:3',
    'test-weighted_posteriors.R:52:3'
  • On Mac (5): 'test-check_prior.R:1:1', 'test-ci.R:2:3',
    'test-describe_posterior.R:145:3', 'test-different_models.R:2:3',
    'test-different_models.R:73:3'
  • Test creates error, must check why... (1): 'test-weighted_posteriors.R:71:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-diagnostic_posterior.R:29:3'): diagnostic_posterior default ──
  Expected `dp2$Rhat` to equal `c(1.00125536330078, 1.00087301991599)`.
  Differences:
    `actual`: 1.001255 1.000845
  `expected`: 1.001255 1.000873
  
  
  [ FAIL 1 | WARN 0 | SKIP 82 | PASS 247 ]
  Error:
  ! Test failures.
  Execution halted