tests/testthat/test-simcuredata.R

context("Check inputs of simcuredata routine")

# Error if wrong cure setting

test_that("cure setting", {
  expect_error(
    simcuredata(n = 300, censor = "Weibull", cure.setting = 3, KapMeier = TRUE)
  )
})

Try the blapsr package in your browser

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

blapsr documentation built on Aug. 20, 2022, 5:05 p.m.