powered by
Checks if is ... used using
length(list(...)) != 0L
chk_used(...)vld_used(...)
vld_used(...)
The chk_ function throws an informative error if the test fails.
chk_
Additional arguments.
vld_used(): Validate ... Used
vld_used()
length()
For more details about the use of this function, please read the article vignette("chk-families").
vignette("chk-families")
Other ellipsis_checkers: chk_unused()
chk_unused()
# chk_used fun <- function(x, ...) { chk_used(...) x } try(fun(1)) fun(1, 2) # vld_used fun <- function(x, ...) { vld_used(...) } fun(1) fun(1, 2)
Run the code above in your browser using DataLab