ellipsis (version 0.0.1)

check_dots_used: Check that all dots in current environment have been used

Description

Automatically sets exit handler to run when function terminates, checking that all elements of ... have been evaluated.

Usage

check_dots_used(env = parent.frame())

Arguments

env

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

Examples

Run this code
# NOT RUN {
f <- function(...) {
  check_dots_used()
  g(...)
}

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

f(x = 1, y = 2, z = 3)
f(x = 1, y = 2, 3, 4, 5)
# }

Run the code above in your browser using DataCamp Workspace