check_dots_empty

0th

Percentile

Check that dots are unused

Sometimes you just want to use ... to force your users to fully name the details arguments. This function warns if ... is not empty.

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

Environment in which to look for ....

Aliases
  • check_dots_empty
Examples
# NOT RUN {
f <- function(x, ..., foofy = 8) {
  check_dots_empty()
  x + foofy
}

try(f(1, foof = 4))
f(1, foofy = 4)
# }
Documentation reproduced from package ellipsis, version 0.2.0.1, License: GPL-3

Community examples

Looks like there are no examples yet.