tests/testthat/test-group_by.R

test_that("group_by", {
  data <- new_sticky_tibble(
    list(col_1 = letters, col_2 = letters, col_3 = letters),
    class_grouped_df = "my_grouped_df"
  ) |>
    group_by(col_1, col_2)

  expect_true(all(
    c("my_grouped_df", "sticky_grouped_df", "grouped_df") %in% class(data)
  ))
})

Try the stickyr package in your browser

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

stickyr documentation built on July 13, 2026, 1:06 a.m.