easystats / modelbased

:chart_with_upwards_trend: Estimate effects, contrasts and means based on statistical models
https://easystats.github.io/modelbased/
GNU General Public License v3.0
232 stars 19 forks source link

Fix failing tests #219

Closed IndrajeetPatil closed 1 year ago

IndrajeetPatil commented 1 year ago
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-brms.R:2'): (code run outside of `test_that()`) ────────────────
Error in `.fun(model_code = .x1)`: Boost not found; call install.packages('BH')
Backtrace:
     ▆
  1. └─brms::brm(...) at test-brms.R:2:2
  2.   └─brms::do_call(compile_model, compile_args)
  3.     └─brms:::eval2(call, envir = args, enclos = envir)
  4.       └─base::eval(expr, envir, ...)
  5.         └─base::eval(expr, envir, ...)
  6.           └─brms (local) .fun(...)
  7.             └─brms (local) .compile_model(model, ...)
  8.               ├─brms:::eval_silent(...)
  9.               │ └─base::eval(expr, envir)
 10.               │   └─base::eval(expr, envir)
 11.               └─brms::do_call(rstan::stan_model, args)
 12.                 └─brms:::eval2(call, envir = args, enclos = envir)
 13.                   └─base::eval(expr, envir, ...)
 14.                     └─base::eval(expr, envir, ...)
 15.                       └─rstan (local) .fun(model_code = .x1)
── Failure ('test-estimate_contrasts.R:178'): estimate_contrasts - dfs ─────────
any(estim1$CI_low != estim2$CI_low) is not TRUE

`actual`:   FALSE
`expected`: TRUE 

[ FAIL 2 | WARN 1 | SKIP 0 | PASS 151 ]
IndrajeetPatil commented 1 year ago

And the other one:

 ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-estimate_contrasts.R:186'): estimate_contrasts - dfs ─────────
  any(estim1$CI_low != estim2$CI_low) is not TRUE

  `actual`:   FALSE
  `expected`: TRUE 

I am going to comment out this one since it's difficult to see if builds pass otherwise.

IndrajeetPatil commented 1 year ago

I am just skipping this test on Windows because this seems like an issue with brms on Windows.