Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation topic for tidyselect arguments #365

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented Oct 25, 2024

Closes #328.

I've also updated overview.Rmd from https://github.com/tidyverse/dplyr/blob/e4e9a295a373b85e02ae084a23f12e9212a72b98/man/rmd/overview.Rmd. But I had to remove the reference to group_cols() which is specific to dplyr.

R/doc-tidy-selection.R Outdated Show resolved Hide resolved
R/doc-tidy-selection.R Outdated Show resolved Hide resolved
#' 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#' functions, tidy-select arguments require special attention, as described in
#' functions that you create, tidy-select arguments require special attention, as described in

Right? Even though we got to this page from, say, dplyr::select()'s documentation of the ..., you are talking about the case where the reader of the documentation makes their own wrapper function, right? So we should just be super clear about that - because you can also come to this page when you're just like "what's tidyselect?" and you aren't interested in these advanced ideas.

Maybe this whole paragraph should move down into # Details or # Wrapping tidyselect arguments, with ## Indirection as a subheader?

That would let you provide the main details up top (i.e. what is tidyselect) and then later on talk about the complex stuff

man/rmd/overview.Rmd Outdated Show resolved Hide resolved
@lionel- lionel- closed this Oct 28, 2024
@lionel- lionel- deleted the feature/doc-tidyselect branch October 28, 2024 12:55
@lionel- lionel- restored the feature/doc-tidyselect branch October 28, 2024 12:56
@lionel- lionel- reopened this Oct 28, 2024
lionel- and others added 2 commits October 28, 2024 14:08
@lionel- lionel- merged commit 7c0c376 into main Oct 28, 2024
11 checks passed
@lionel- lionel- deleted the feature/doc-tidyselect branch October 28, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide doc topic for <tidy-select>
2 participants