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.
Usage
check_dots_unnamed(
env = caller_env(),
error = NULL,
call = caller_env(),
action = abort
)
Arguments
- env
Environment in which to look for
...
.- error
An optional error handler passed to
try_fetch()
. Use this e.g. to demote an error into a warning.- call
The execution environment of a currently running function, e.g.
caller_env()
. The function will be mentioned in error messages as the source of the error. See thecall
argument ofabort()
for more information.- action
See also
Other dots checking functions:
check_dots_empty()
,
check_dots_used()