diff --git a/man/rmd/topic-data-mask-programming.Rmd b/man/rmd/topic-data-mask-programming.Rmd index da20c28c5..c6482ee43 100644 --- a/man/rmd/topic-data-mask-programming.Rmd +++ b/man/rmd/topic-data-mask-programming.Rmd @@ -228,7 +228,7 @@ Since `across()` takes selections in a single argument (unlike `select()` which ```r my_group_by <- function(.data, ...) { - .data %>% dplyr::group_by(across(c(...)})) + .data %>% dplyr::group_by(across(c(...))) } mtcars %>% my_group_by(starts_with("c"), vs:gear) diff --git a/man/topic-data-mask-programming.Rd b/man/topic-data-mask-programming.Rd index e3f357f2e..12eb7c1a3 100644 --- a/man/topic-data-mask-programming.Rd +++ b/man/topic-data-mask-programming.Rd @@ -246,7 +246,7 @@ mtcars \%>\% my_group_by(starts_with("c")) Since \code{across()} takes selections in a single argument (unlike \code{select()} which takes multiple arguments), you can't directly pass \code{...}. Instead, take them within \code{c()}, which is the tidyselect way of supplying multiple selections within a single argument: \if{html}{\out{