tests/testthat/test-report_s.R

test_that("report_s", {
  expect_snapshot(report_s(s = 4.2), variant = "windows")
  expect_snapshot(report_s(p = 0.06), variant = "windows")
})

test_that("report_s, arguments", {
  expect_error(report_s())
  expect_error(report_s(s = 1:2), "single value")
})

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.