check_dots_used

0th

Percentile

Check that all dots have been used

Automatically sets exit handler to run when function terminates, checking that all elements of ... have been evaluated. If you use on.exit() elsewhere in your function, make sure to use add = TRUE so that you don't override the handler set up by check_dots_used().

Usage
check_dots_used(env = parent.frame())
Arguments
env

Environment in which to look for ... and to set up handler.

Aliases
  • check_dots_used
Examples
# NOT RUN {
f <- function(...) {
  check_dots_used()
  g(...)
}

g <- function(x, y, ...) {
  x + y
}
f(x = 1, y = 2)

try(f(x = 1, y = 2, z = 3))
try(f(x = 1, y = 2, 3, 4, 5))
# }
Documentation reproduced from package ellipsis, version 0.2.0.1, License: GPL-3

Community examples

Looks like there are no examples yet.