Skip to content

Commit 90c6446

Browse files
committed
only cast RHS formula to function
1 parent 183e7ad commit 90c6446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,5 +1454,5 @@ trans_support_nbreaks <- function(trans) {
14541454
}
14551455

14561456
allow_lambda <- function(x) {
1457-
if (is_formula(x)) as_function(x) else x
1457+
if (is_formula(x, lhs = FALSE)) as_function(x) else x
14581458
}

0 commit comments

Comments
 (0)