argufy

0th

Percentile

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.

Keywords
internal
Usage
argufy(fun, assertions = NULL, coercions = NULL)
Arguments
fun
Function to add assertions to.
assertions
Character scalar, assertion expression.
coercions
Character scalar, coercion expression.
Value

Function with assertions added.

Aliases
  • argufy
Documentation reproduced from package argufy, version 2.0.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.