Checks that an argument is a single finite integer, not smaller than
min. Meant for the many size arguments in the suite - digits,
sep, width, nPerm, R and the like - which
are conceptually counts rather than numbers and were previously
spelled out by hand wherever they occur.
Usage
checkCount(x, min = 0L, name = deparse(substitute(x)))Details
A whole number stored as a double is accepted, as that is what
arithmetic on integers produces and what a user typing 2 supplies.
TRUE is not, although it would survive as.integer(): a flag
that reaches a count argument is a mistake, not a shorthand for one.
The order of the tests is the same as in checkConfLevel(), length
first, then type, then value, so that the message names the argument
rather than the condition that failed.
