tests/testthat/test-report.htest-friedman.R

test_that("report.htest-friendman report", {
  wb <<- aggregate(warpbreaks$breaks,
    by = list(
      w = warpbreaks$wool,
      t = warpbreaks$tension
    ),
    FUN = mean
  )
  x <- friedman.test(wb$x, wb$w, wb$t)

  expect_snapshot(
    variant = "windows",
    report(x)
  )
})

Try the report package in your browser

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

report documentation built on Sept. 11, 2024, 8:47 p.m.