tests/testthat/test-plot_sfr.R

testthat::skip_on_cran()
testthat::skip_on_ci()

test_plot_sfr <- function() {
    plot_sfr(
        cs = sim[[1]]$cs,
        si = sim[[1]]$si,
        sfr = c(3.55, 3.35)
    )
}

test_result <- test_that("plot_sfr works", {
    tmp <- vdiffr::expect_doppelganger(
        title = "plot_sfr",
        fig = test_plot_sfr,
        writer = function(plot, file, title = "") {
            with_svg(file, plot())
        }
    )
})

Try the metabodecon package in your browser

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

metabodecon documentation built on Nov. 5, 2025, 7:12 p.m.