tests/testthat/test-plot.hdi.R

test_that("`plot.see_hdi()` works", {
  skip_if_not_installed("rstanarm")
  skip_if_not_installed("ggridges")

  set.seed(123)
  result <- bayestestR::hdi(m_rstan)

  expect_s3_class(plot(result), "gg")
})
easystats/see documentation built on March 1, 2025, 3:54 p.m.