Skip to content

Commit b321dae

Browse files
committed
Collect quos first in case the user has a column named ns
1 parent 0d60781 commit b321dae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/across.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,8 @@ expand_if_across <- function(quo) {
711711
quos <- expand_across(quo_set_expr(quo, call))
712712

713713
expr <- expr({
714-
ns <- asNamespace("dplyr")
715-
716714
x <- list(!!!quos)
715+
ns <- asNamespace("dplyr")
717716

718717
# In the evaluation path, `across()` automatically recycles to common size,
719718
# so we must here as well for compatibility. `across()` also returns a 0

0 commit comments

Comments
 (0)