Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Vaughan <[email protected]>
  • Loading branch information
lionel- and DavisVaughan authored Oct 28, 2024
1 parent d0fece8 commit 2e4e2da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/doc-tidy-selection.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' dialect of R for selecting variables based on their names or properties.
#'
#' Tidy selection is a variant of tidy evaluation. This means that inside
#' functions, tidy-select arguments require special attention, as described in
#' functions tidy-select arguments require special attention, as described in
#' the *Indirection* section below. If you've never heard of tidy evaluation
#' before, start with `vignette("programming")`.
#'
Expand All @@ -21,12 +21,12 @@
#'
#' There are two main cases:
#'
#' * If you have a character vector of column names, use `all_of()`
#' * If you want the user to supply a character vector of column names, use `all_of()`
#' or `any_of()`, depending on whether or not you want unknown variable
#' names to cause an error, e.g. `select(df, all_of(vars))`,
#' `select(df, !any_of(vars))`.
#'
#' * If you want the user to be able to supply a tidyselect specification in
#' * If you want the user to supply a tidyselect specification in
#' a function argument, embrace the function argument, e.g.
#' `select(df, {{ vars }})`.
#'
Expand Down

0 comments on commit 2e4e2da

Please sign in to comment.