Running ‘testthat.R’ [18m/12m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayestestR)
  > 
  > test_check("bayestestR")
  Starting 2 test processes
  [ FAIL 4 | WARN 16 | SKIP 79 | PASS 220 ]
  
  ══ Skipped tests (79) ══════════════════════════════════════════════════════════
  • On CRAN (73): 'test-bayesfactor_parameters.R:56:3',
    'test-bayesfactor_parameters.R:94:3', 'test-bayesfactor_restricted.R:36:3',
    'test-bayesian_as_frequentist.R:1:1', 'test-blavaan.R:2:3',
    'test-brms.R:2:3', 'test-brms.R:38:3', 'test-brms.R:57:3',
    'test-brms.R:81:3', 'test-check_prior.R:4:3', 'test-check_prior.R:66:3',
    'test-check_prior.R:104:3', 'test-ci.R:33:3', 'test-ci.R:50: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_posterior.R:3:3', 'test-describe_posterior.R:249:3',
    'test-describe_posterior.R:266:3', 'test-describe_posterior.R:284:3',
    'test-describe_posterior.R:321:3', 'test-describe_prior.R:2:3',
    'test-bayesfactor_models.R:58:3', 'test-bayesfactor_models.R:85:3',
    'test-bayesfactor_models.R:122:3', 'test-effective_sample.R:2:3',
    'test-equivalence_test.R:1:1', 'test-hdi.R:3:3', 'test-hdi.R:25:3',
    'test-hdi.R:43:3', 'test-hdi.R:61:3', 'test-map_estimate.R:23:3',
    'test-map_estimate.R:36:3', 'test-marginaleffects.R:1:1',
    'test-p_direction.R:38:3', 'test-p_direction.R:70:3', 'test-p_map.R:24:3',
    'test-p_map.R:39:3', 'test-p_rope.R:2:3', 'test-p_significance.R:38:3',
    'test-p_significance.R:50:3', 'test-p_significance.R:84:3',
    'test-point_estimate.R:2:3', 'test-point_estimate.R:18:3',
    'test-posterior.R:2:3', 'test-posterior.R:22:3', 'test-posterior.R:42:3',
    'test-posterior.R:62:3', 'test-posterior.R:82:3', 'test-posterior.R:103:3',
    'test-print.R:2: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:50:3',
    'test-rstanarm.R:69:3', 'test-rstanarm.R:89:3', 'test-rstanarm.R:109:3',
    'test-si.R:33:3', 'test-spi.R:3:3', 'test-spi.R:25:3', 'test-spi.R:42:3',
    'test-spi.R:60:3', 'test-rope.R:2:3', 'test-rope.R:40:3', 'test-rope.R:83:3'
  • On Linux (5): 'test-BFBayesFactor.R:1:1', 'test-ci.R:2:3',
    'test-describe_posterior.R:111:3', 'test-weighted_posteriors.R:1:1',
    'test-rope.R:98:3'
  • TODO: check hard-coded values (1): 'test-check_prior.R:27:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-bayesfactor_models.R:35:3'): bayesfactor_models BIC ──────────
  update(BFM2, reference = 1)$log_BF (`actual`) not equal to c(0, -2.8, -6.2, -57.4) (`expected`).
  
    `actual`: 0.00 -9.82 -12.10 -57.18
  `expected`: 0.00 -2.80  -6.20 -57.40
  ── Failure ('test-bayesfactor_models.R:208:3'): bayesfactor_inclusion | LMM ────
  bfinc_all$log_BF (`actual`) not equal to c(NaN, 57.651, -2.352, -4.064, -4.788) (`expected`).
  
    `actual`: NaN 55.8 -10.0 -10.9 -10.5
  `expected`: NaN 57.7  -2.4  -4.1  -4.8
  ── Failure ('test-bayesfactor_models.R:213:3'): bayesfactor_inclusion | LMM ────
  bfinc_matched$p_posterior (`actual`) not equal to c(1, 0.875, 0.125, 0.009, 0.002) (`expected`).
  
    `actual`: 1.00 1.00 0.00 0.00 0.00
  `expected`: 1.00 0.88 0.12 0.01 0.00
  ── Failure ('test-bayesfactor_models.R:214:3'): bayesfactor_inclusion | LMM ────
  bfinc_matched$log_BF (`actual`) not equal to c(NaN, 58.904, -3.045, -3.573, -1.493) (`expected`).
  
    `actual`: NaN 57.2 -10.7 -11.0  0.2
  `expected`: NaN 58.9  -3.0  -3.6 -1.5
  
  [ FAIL 4 | WARN 16 | SKIP 79 | PASS 220 ]
  Error: Test failures
  Execution halted