tests/testthat/test-plot_replicate_histogram.R

replicate_plot <- plot_replicate_histogram(rep_dat) 

test_that("plot_replicate_histogram class is right",
          expect_is(replicate_plot, "ggplot")
)

test_that("plot works",
          vdiffr::expect_doppelganger("Replicates histogram - all time", replicate_plot)
)

test_that("one time",
          vdiffr::expect_doppelganger("Replicates histogram - one time", plot_replicate_histogram(rep_dat[rep_dat[["Exposure"]] == 5, ])))

Try the HaDeX2 package in your browser

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

HaDeX2 documentation built on Feb. 9, 2026, 5:07 p.m.