R/vdiffr.R

Defines functions wrapped_expect_doppelganger

# to satisfy CRAN checks about conditional use of suggested packages
# code suggested by Lionel Henry

wrapped_expect_doppelganger <- function(title, fig, path = NULL, ...) {
  testthat::skip_if_not_installed("vdiffr")
  
  # path arg has been deprecated, so don't pass it along
  vdiffr::expect_doppelganger(title, fig, ...)
}
ProjectMOSAIC/mosaic documentation built on Feb. 21, 2024, 2:11 a.m.