tests/testthat/setup.R

check_ggplot_fig <- function(ptitle, p) {
  if (testthat:::on_ci()) {
    testthat::expect_true(is(p, "ggplot"))
  } else {
    vdiffr::expect_doppelganger(ptitle, p)
  }
}
takayasaito/precrec documentation built on Oct. 19, 2023, 7:28 p.m.