From 9f6d7b1a07c5140f09889aa4f0bcb9a68bcf0bfd Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Thu, 5 Jun 2025 15:41:36 +0100 Subject: [PATCH 1/2] Dont generate one docs --- r/R/dplyr-funcs-agg.R | 1 + 1 file changed, 1 insertion(+) diff --git a/r/R/dplyr-funcs-agg.R b/r/R/dplyr-funcs-agg.R index b67af6fc01c..d1f2a2c3f57 100644 --- a/r/R/dplyr-funcs-agg.R +++ b/r/R/dplyr-funcs-agg.R @@ -204,6 +204,7 @@ find_arrow_mask <- function() { #' group_by(cyl) |> #' summarize(x = one(disp)) #' } +#' @keywords internal one <- function(...) { set_agg( fun = "one", From f16b6a46985cf284d9c9f1db570e7cbd01bc6f25 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Thu, 5 Jun 2025 15:44:56 +0100 Subject: [PATCH 2/2] Run devtools::document() --- r/man/one.Rd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/r/man/one.Rd b/r/man/one.Rd index 5b672b5c190..654d7895951 100644 --- a/r/man/one.Rd +++ b/r/man/one.Rd @@ -10,10 +10,10 @@ one(...) \item{...}{Unquoted column name to pull values from.} } \description{ -Returns one arbitrary value from the input for each group. The -function is biased towards non-null values: if there is at least one non-null -value for a certain group, that value is returned, and only if all the values -are null for the group will the function return null. +Returns one arbitrary value from the input for each group. The function is +biased towards non-null values: if there is at least one non-null value for a +certain group, that value is returned, and only if all the values are null +for the group will the function return null. } \examples{ \dontrun{ @@ -23,3 +23,4 @@ mtcars |> summarize(x = one(disp)) } } +\keyword{internal}