test_that("`plot.see_check_collinearity()` works", {
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- performance::check_collinearity(m)
expect_s3_class(plot(result), c("gg", "ggplot"))
skip_if_not_installed("vdiffr")
vdiffr::expect_doppelganger(
title = "plot.check_collinearity",
fig = plot(result)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.