context("tbl")
test_that("tbl_nongroup_vars() excludes group variables", {
cube <- group_by(nasa, month)
expect_identical(tbl_nongroup_vars(cube), setdiff(tbl_vars(cube), "month"))
gdf <- group_by(mtcars, cyl)
expect_identical(tbl_nongroup_vars(gdf), setdiff(tbl_vars(gdf), "cyl"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.