R/testthat.R

Defines functions skip_if_no_vdiffr

# Helpers for testthat tests
#
# Author: mjskay
###############################################################################

# skip tests if there is no vdiffr setup or if the setup is likely
# to produce false positive test failures (e.g. old version of ggplot2)
skip_if_no_vdiffr = function() {
  testthat::skip_if_not_installed("vdiffr")
  testthat::skip_if_not_installed("svglite")
  testthat::skip_if_not_installed("ggplot2", "3.3.3.9000")
  # unlike ggdist tests, these tests are all for deprecated stuff so minor
  # changes in images on CI are more trouble than they are worth
  testthat::skip_on_ci()
}

Try the tidybayes package in your browser

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

tidybayes documentation built on Aug. 13, 2023, 1:06 a.m.