View source: R/makeAssertionFunction.R
makeAssertionFunction | R Documentation |
makeAssertionFunction
can be used to automatically create
an assertion function based on a check function (see example). This is a
modification of checkmate::makeAssertionFunction
that includes the
argument comment in the assertion function.
makeAssertionFunction(
check.fun,
c.fun = NULL,
coerce = FALSE,
env = parent.frame()
)
check.fun |
[ |
c.fun |
[ |
coerce |
[ |
env |
[ |
The code is imported from checkmate
. The modifications in the
code is marked. The argument use.namespace is deleted as
checkmate::makeAssertion
and checkmate::vname
always should
be used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.