tests/testthat/test-fnc_prepFigV2.R

testthat::test_that(
  desc = "prepFigV2 works",
  code = {
    inp <- system.file(package = "eCerto", "extdata", "eCerto_Testdata_VModule.xlsx")
    tab <- eCerto:::read_Vdata(file = inp)
    pdf(NULL)
    vdiffr::expect_doppelganger(
      title = "FigV2 Standard",
      fig = function() eCerto:::prepFigV2(tab = tab, a = "PFOA", alpha = 0.01, cex = 1)
    )
  }
)

Try the eCerto package in your browser

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

eCerto documentation built on April 12, 2025, 9:13 a.m.