View source: R/dots-ellipsis.R
check_dots_unnamed | R Documentation |
In functions like paste()
, named arguments in ...
are often a
sign of misspelled argument names. Call check_dots_unnamed()
to
fail with an error when named arguments are detected.
check_dots_unnamed(
env = caller_env(),
error = NULL,
call = caller_env(),
action = abort
)
env |
Environment in which to look for |
error |
An optional error handler passed to |
call |
The execution environment of a currently
running function, e.g. |
action |
Other dots checking functions:
check_dots_empty()
,
check_dots_used()
f <- function(..., foofy = 8) {
check_dots_unnamed()
c(...)
}
f(1, 2, 3, foofy = 4)
try(f(1, 2, 3, foof = 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.