Skip to content

Commit 21b4a4d

Browse files
authored
Use minimal NSE in tool() (#777)
Fixes #687
1 parent 1556345 commit 21b4a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/tools-def.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ tool <- function(
150150
annotations <- .annotations
151151
}
152152

153-
fun_expr <- enexpr(fun)
153+
fun_expr <- substitute(fun)
154154
check_function(fun)
155155
check_string(description)
156156
check_string(name, allow_null = TRUE)

0 commit comments

Comments
 (0)