tests/testthat/helper.R

# commonly utilized models
if (suppressPackageStartupMessages(require("rstanarm", warn.conflicts = FALSE, character.only = TRUE))) {
  m_rstan <<- suppressWarnings(
    rstanarm::stan_glm(
      Sepal.Length ~ Petal.Width * Species,
      data = datasets::iris,
      refresh = 0
    )
  )
}
easystats/see documentation built on March 1, 2025, 3:54 p.m.