tests/testthat/test_makeGroupNum.R

## Copyright(c) 2017-2026 R. Mark Sharp
## This file is part of nprcgenekeepr

test_that("makeGroupNum builds the initial grpNum list", {
  expect_identical(makeGroupNum(3L), list(1L, 2L, 3L))
  expect_identical(makeGroupNum(1L), list(1L))
})

test_that("makeGrpNum still works but is deprecated", {
  expect_warning(g <- makeGrpNum(3L), "makeGroupNum")
  expect_identical(g, list(1L, 2L, 3L))
})

Try the nprcgenekeepr package in your browser

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

nprcgenekeepr documentation built on July 26, 2026, 5:06 p.m.