tests/testthat/test-pseq.R

test_that("`pseq()`: scalar inputs", {
  expect_identical(pseq(from = 0L, to = 5L), 0L:5L)
})

test_that("`pseq()`: vector inputs", {
  expect_identical(pseq(from = c(0L, 10L), to = c(5L, 15L)), c(0L:5L, 10L:15L))
})

Try the sdtm.oak package in your browser

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

sdtm.oak documentation built on April 3, 2025, 9:37 p.m.