tests/testthat/test-check_remaining_arms.R

test_that("check_remaining_arms works and errors correctly", {
  res <- read_testdata("binom__results__3_arms__no_control__equivalence__softened__sparse")
  expect_snapshot(check_remaining_arms(res))

  expect_error(check_remaining_arms(mtcars))
  expect_error(check_remaining_arms(res, ci_width = NA))
})

Try the adaptr package in your browser

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

adaptr documentation built on May 29, 2024, 7:48 a.m.