-
Notifications
You must be signed in to change notification settings - Fork 19
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
docs: manual pages for select()
and mutate()
#351
base: main
Are you sure you want to change the base?
Conversation
@@ -16,6 +17,9 @@ select.duckplyr_df <- function(.data, ...) { | |||
rel_try(list(name = "select", x = .data, args = try_list(dots = enquos(...))), | |||
# We could count and create a zero-col data frame, but we can't | |||
# create a duckplyr frame from it anyway. | |||
#' @section Caveats: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this section should be called Fallbacks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh and we could have an automatic sentence about telemetry in all fallback section later once telemetry is easier to tweak?
… and dplyr are loaded
@@ -0,0 +1,18 @@ | |||
#' @title Keep or drop columns using their names and types | |||
#' | |||
#' @description This is a method for the [`dplyr::select()`] generic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also can we say "generic" here
@@ -16,6 +17,9 @@ select.duckplyr_df <- function(.data, ...) { | |||
rel_try(list(name = "select", x = .data, args = try_list(dots = enquos(...))), | |||
# We could count and create a zero-col data frame, but we can't | |||
# create a duckplyr frame from it anyway. | |||
#' @section Caveats: | |||
#' You cannot use `select.duckplyr_df` with no expression, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or with a selection that returns no columns
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 6e757c9 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
That won't fly, unfortunately. Looks like if we want to reexport, we need to document.
https://github.com/tidyverse/duckplyr/actions/runs/11953558550/job/33321797657?pr=351#step:17:223 @hadley: Neither dbplyr nor dtplyr reexport the dplyr generics. I'm inclined to avoid reexporting here too, but to support the existing library(duckplyr)
data.frame(a = 1) |> mutate(b = 2) pattern we'd need to add |
Let's ignore the reexport question for the purpose of this PR, and focus only on providing |
#214