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), "gg") skip_if_not_installed("vdiffr") vdiffr::expect_doppelganger( title = "plot.check_collinearity", fig = plot(result) ) })