Skip to content

Commit f5ddcea

Browse files
authored
Update R/count-tally.R
1 parent cb870a9 commit f5ddcea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/count-tally.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ tally_n <- function(x, wt) {
215215
if (quo_is_null(wt)) {
216216
new_quosure(expr(n()), asNamespace("dplyr"))
217217
} else {
218-
new_quosure(expr(sum(!!wt, na.rm = TRUE)), quo_get_env(wt))
218+
new_quosure(expr(sum(!!wt, na.rm = TRUE)), baseenv())
219219
}
220220
}
221221

0 commit comments

Comments
 (0)