tests/testthat/test-plot.R

test_that("plot must be a ggplot", {

        # Quasi-Poisson
        pred_int_qp_pi <- quasi_pois_pi(histdat=qp_dat1,
                                        newdat=qp_dat2,
                                        nboot=1000,
                                        traceplot = FALSE)

        qp_plot <- plot(pred_int_qp_pi)

        # Is the grafic a ggplot object
        expect_true(inherits(qp_plot, c("gg", "ggplot")))

})

Try the predint package in your browser

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

predint documentation built on Aug. 8, 2025, 6:40 p.m.