jonkeane commented on code in PR #51314:
URL: https://github.com/apache/arrow/pull/51314#discussion_r4030670743
##########
r/R/dplyr-across.R:
##########
@@ -59,18 +59,18 @@ expand_across <- function(.data, quos_in, exclude_cols =
NULL) {
new_quos <- quosures_from_setup(setup, quo_env)
+ # if_any()/if_all() collapse the expanded quosures into a single
+ # expression, keeping whatever name the user gave the call
+ if (is_call(quo_expr, c("if_any", "if_all"))) {
+ op <- if (is_call(quo_expr, "if_any")) "|" else "&"
Review Comment:
I'm fine to run with it, but the inline if/else is a little 🤢
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]