tests/testthat/test_Surv.R

testthat::context("survival::Surv and popEpi::Surv harmony")




testthat::test_that("survival::Surv and popEpi::Surv's formals are in harmony",{
  
  popepi_formals <- as.list(formals(popEpi::Surv))
  survival_formals <- as.list(formals(survival::Surv))
  testthat::expect_identical(
    object = popepi_formals,
    expected = survival_formals
  )
  
})

Try the popEpi package in your browser

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

popEpi documentation built on May 29, 2024, 1:49 a.m.