test_sensible_int | R Documentation |
x
an "int" with a sensible class? TRUE/FALSELike checkmate::test_int
but disallowing some non-sensible classes that
test_int
accepts, such as difftime
s. We rely on is.numeric
to
determine class appropriateness; note that is.numeric
is NOT simply
checking for the class to be "numeric" (or else we'd fail on integer class).
test_sensible_int(
x,
na.ok = FALSE,
lower = -Inf,
upper = Inf,
tol = sqrt(.Machine$double.eps),
null.ok = FALSE
)
x |
object |
Boolean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.