ellipsis
Tools for Working with ...
The ellipsis package provides tools to make R’s ... (dot-dot-dot) argument safer by catching common errors like misspelled or unused arguments. Without these checks, functions that accept ... silently ignore incorrect arguments, which can lead to bugs that are hard to detect.
The package offers three main checking functions: check_dots_used() ensures all arguments passed to ... are actually evaluated by the function, check_dots_unnamed() validates that no named arguments appear where only unnamed ones are expected, and check_dots_empty() enforces that no extra arguments are provided at all. These checks help catch typos and misused arguments that would otherwise be silently ignored, making function interfaces more robust and user errors more visible.


