tests/testthat/test-plot.performance_pp_check.R

test_that("`print.see_performance_pp_check()` works", {
  set.seed(123)
  model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris)
  result <- performance::check_posterior_predictions(model)

  vdiffr::expect_doppelganger(
    title = "pp check - lm",
    fig = plot(result)
  )
})

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.