tests/testthat/test-get_km.R

test_that("get_km function does not return an error", {
  expect_no_error(
    get_km(
      data = easy_lung,
      time = "time",
      event = "status",
      group = "sex"
    )
  )
})

test_that("get_km function without a group does not return an error", {
  expect_no_error(
    get_km(
      data = easy_lung,
      time = "time",
      event = "status"
    )
  )
})

Try the easysurv package in your browser

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

easysurv documentation built on June 24, 2024, 9:09 a.m.