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)
  }
}
evalclass/precrec documentation built on Oct. 20, 2023, 7:45 p.m.