Add argument checks to a function
Function argument assertions via a concise declerative syntax. The actual assertion code is generated automatically and inserted at the beginning into the function.
argufy(fun, assertions = NULL, coercions = NULL)
- Function to add assertions to.
- Character scalar, assertion expression.
- Character scalar, coercion expression.
Function with assertions added.
Looks like there are no examples yet.