A copy from R's grDevices:::checkIntFormat because it is not exported there
checkIntFormat(s)
s
An integer
logical: TRUE or FALSE
R Core Development Team