R package for defining functions which provide descriptions, automatic argument checking, and more

Usage

Instead of:

do this:

my_function <- def(x = "numeric" %&% (~ . != 0), y = list(TRUE, FALSE), {
  ## Do stuff with x and y
})

As a bonus, you get this:

man(my_function)
x ->
  Is a: numeric
  Verifies: . != 0

y ->
  Is in: TRUE, FALSE