tests/testthat/test-plot.R

test_that("plot", {
    # (1) load data
    data("fitPBK_C4")
    # (3) run plot
    plotPBK_C4 = plot(fitPBK_C4)
    # (4) check plot has been executed:
    testthat::expect_true(all(class(plotPBK_C4) == c("gg", "ggplot")))
})

Try the rPBK package in your browser

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

rPBK documentation built on May 29, 2024, 2:41 a.m.