Checks if is ... used using
length(list(...)) != 0L
See also
Other chk_ellipsis:
chk_unused()
Examples
# chk_used
fun <- function(x, ...) {
chk_used(...)
x
}
try(fun(1))
#> Error in fun(1) : `...` must be used.
fun(1, 2)
#> [1] 1
# vld_used
fun <- function(x, ...) {
vld_used(...)
}
fun(1)
#> [1] FALSE
fun(1, 2)
#> [1] TRUE