tests/testthat/test-pp_diag.R

test_that("test pp_diag", {

  ## pp obj not correct
  obj <- pp_hpp(lambda = 1)
  class(obj) <- "non-pp"
  expect_output(
    pp_diag(object = obj, events = c(1, 2)),
    "Please input the right model. Select from hp, hpp, mmpp and mmhp. "
  )
})

Try the ppdiag package in your browser

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

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.