Skip to content

Commit

Permalink
Handle lambda functions directly passed to features()
Browse files Browse the repository at this point in the history
Ref #371
  • Loading branch information
mitchelloharawild committed Oct 27, 2022
1 parent 78104d5 commit 9a1e6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/features.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
features_impl <- function(.tbl, .var, features, ...){
dots <- dots_list(...)

if(is_function(features)){
if(is_function(features) || is_formula(features)){
features <- list(features)
}
features <- map(squash(features), as_function)
Expand Down

0 comments on commit 9a1e6fd

Please sign in to comment.