tests/testthat/setup.R

use_vdiff <- FALSE
check_ggplot_fig <- function(ptitle, p) {
  if (testthat:::on_ci() || !use_vdiff) {
    testthat::expect_true(is(p, "ggplot"))
  } else {
    suppressWarnings(vdiffr::expect_doppelganger(ptitle, p))
  }
}

Try the prcbench package in your browser

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

prcbench documentation built on March 31, 2023, 5:27 p.m.