tests/testthat/test-new_tidytable.R

test_that("can create a tidytable from a list", {
  l <- list(x = 1:3, y = c("a", "a", "b"))
  out <- new_tidytable(l)
  expect_named(out, c("x", "y"))
  expect_true(is_tidytable(out))
  expect_true(inherits(out, "tbl"))
})

Try the tidytable package in your browser

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

tidytable documentation built on Sept. 11, 2024, 8:05 p.m.