tests/testthat/test-dims.R

test_that("dims reports rows and columns", {
  out <- dims(iris)

  expect_s3_class(out, "basetable")
  expect_equal(names(out), c("rows", "cols"))
  expect_equal(out$rows[[1]], 150L)
  expect_equal(out$cols[[1]], 5L)
})

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.