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
    )
  )
}

Try the see package in your browser

Any scripts or data that you put into this service are public.

see documentation built on Nov. 3, 2023, 5:10 p.m.