tests/testthat/test-nrows.R

test_that("nrows returns the number of rows", {
  expect_equal(nrows(iris), 150L)
  expect_equal(nrows(data.frame(a = 1:3)), 3L)
})

Try the basetable package in your browser

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

basetable documentation built on Sept. 18, 2026, 9:13 a.m.