tests/testthat/test-ppp2.R

test_that("ppp2() works", {
  expect_no_error(
    withr::with_seed(
      12345,
      df1 <- ppp2(rate = 1, t_min = 0, t_max = 10)
    )
  )
  check_ppp_sample_validity(times = df1, t_min = 0, t_max = 10)
})

Try the nhppp package in your browser

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

nhppp documentation built on Oct. 30, 2024, 9:28 a.m.