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

test_that("report.htest-fisher report", {
  TeaTasting <<-
    matrix(c(3, 1, 1, 3),
      nrow = 2,
      dimnames = list(
        Guess = c("Milk", "Tea"),
        Truth = c("Milk", "Tea")
      )
    )
  x <- fisher.test(TeaTasting, alternative = "greater")

  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.