Check for valid input of either explicit (e.g. 1L
) and/or implict
(e.g. 1
) integer
.
Arguments
- x
Object.
- infiniteOk
logical(1)
. Allow infinite values (Inf
or-Inf
) to pass.- naOk
logical(1)
. AllowNA
values to pass.- nullOk
logical(1)
. If set toTRUE
,x
may also beNULL
.
See also
isInt()
orisScalarIntegerish()
for scalar.checkmate::checkIntegerish()
.