Skip to content
Prev 46399 / 63424 Next

Extending suggestion for stopifnot

If all you care about is emulating static type checking, then you can also accomplish the same thing with lambda.r using type constraints on function definitions.

e.g.
Error in UseFunction("f", ...) : No valid function for 'f(data.frame)'
Error in UseFunction("f", ...) : No valid function for 'f(1)'
<function>
[[1]]
f(m) %::% matrix:matrix
f(m) %as% ?
On Aug 20, 2013, at 4:36 PM, Peter Langfelder <peter.langfelder at gmail.com> wrote: