# 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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.