R/vdiffr-helper.R

if (
  requireNamespace("vdiffr", quietly = TRUE) &&
    utils::packageVersion("testthat") >= "3.0.3" &&
    !identical(Sys.getenv("VDIFFR_RUN_TESTS"), "false")
) {
  expect_doppelganger <- vdiffr::expect_doppelganger
} else {
  # Otherwise, assign a dummy function
  expect_doppelganger <- function(...) testthat::skip("vdiffr not run.")
}

Try the ggstats package in your browser

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

ggstats documentation built on Dec. 22, 2025, 9:07 a.m.