tests/testthat/test-print.R

test_that("print.describe_posterior", {
  skip_on_cran()
  skip_if_offline()
  skip_if_not_or_load_if_installed("brms")
  skip_if_not_or_load_if_installed("httr2")

  m <- insight::download_model("brms_zi_3")
  expect_snapshot(describe_posterior(m, verbose = FALSE), variant = "windows")
  expect_snapshot(describe_posterior(m, effects = "all", component = "all", verbose = FALSE), variant = "windows")
})

Try the bayestestR package in your browser

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

bayestestR documentation built on Oct. 17, 2024, 5:07 p.m.