# Generated by 02-duckplyr_df-methods.R
#' @export
group_vars.duckplyr_df <- function(x) {
if (inherits(x, c("grouped_df", "rowwise_df"))) {
return(dplyr$group_vars.data.frame(x))
}
# Avoid calling group_data()
character()
}
duckplyr_group_vars <- function(x, ...) {
try_fetch(
x <- as_duckplyr_df(x),
error = function(e) {
testthat::skip(conditionMessage(e))
}
)
out <- group_vars(x, ...)
out
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.