tests/testthat/test-fnc_prepFigS3.R

testthat::test_that("Fig.S3 works", {
  # prepare test data
  x <- data.frame(
    "dummy_name" = c("0", "4"),
    "1/K" = 1/(c(0, 4)+273.15),
    "log(-k_eff)" = c(1, 2),
    "CI_upper" = c(2, 3),
    "CI_lower" = c(0, 1),
    "log(k)_calc" = c(1, 2),
    check.names = FALSE
  )
  # check if function is running properly (returning NULL)
  testthat::expect_null(eCerto:::prepFigS3(tab = x))
})

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.