Skip to content

Commit

Permalink
Remove ... args from function
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Apr 27, 2021
1 parent 4942b3e commit cf0a865
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ installExprFunction <- function(expr, name, eval.env = parent.frame(2),
quoToFunction <- function(q, label, ..stacktraceon = FALSE) {
q <- as_quosure(q)
func <- as_function(q)
# as_function returns a function that takes `...`. We want one that takes no
# args.
formals(func) <- list()
wrapFunctionLabel(func, label, ..stacktraceon = ..stacktraceon)
}

Expand Down

0 comments on commit cf0a865

Please sign in to comment.