tests/testthat/test-tabMWRfre.R

test_that("Checking output format type as summary", {
  result <- tabMWRfre(tst$respth, tst$accpth, tst$frecompth, runchk = F, warn = F, type = 'summary')
  expect_s3_class(result, 'flextable')
})

test_that("Checking output format type as percent", {
  result <- tabMWRfre(tst$respth, tst$accpth, tst$frecompth, runchk = F, warn = F, type = 'percent')
  expect_s3_class(result, 'flextable')
})

Try the MassWateR package in your browser

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

MassWateR documentation built on June 8, 2025, 11:20 a.m.