tests/testthat/test-pp_ksplot.R

test_that("test pp_ksplot", {
  expect_error(
    pp_ksplot(r = NULL),
    "No rescaled interevent times provided"
  )
  expect_error(
    pp_ksplot(r = 0),
    "No rescaled interevent times provided"
  )
  expect_error(
    pp_ksplot(r = c(1, -1)),
    "Incorrect interevent times provided"
  )
})

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.