tests/testthat/test-PMCMRplus.R

test_that("model_parameters.PMCMR", {
  skip_if_not_installed("PMCMRplus")
  set.seed(123)
  mod <- suppressWarnings(PMCMRplus::kwAllPairsConoverTest(count ~ spray, data = InsectSprays))
  df <- as.data.frame(model_parameters(mod))

  # no need to add strict tests, since `toTidy` is tested in `PMCMRplus` itself
  expect_equal(dim(df), c(15L, 8L))
})

Try the parameters package in your browser

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

parameters documentation built on Nov. 2, 2023, 6:13 p.m.