powered by
Generate a stop with a good error message if the dots argument was a non-trivial list. Useful in writing functions that force named arguments.
stop_if_dot_args(dot_args, msg = "")
NULL or stop()
substitute(list(...)) from another function.
character, optional message to prepend.
f <- function(x, ..., inc = 1) { stop_if_dot_args(substitute(list(...)), "f") x + inc } f(7) f(7, inc = 2) tryCatch( f(7, 2), error = function(e) { print(e) } )
Run the code above in your browser using DataLab