R/check-scalar.R
check_int.Rd
Checks Int
check_int(x, x_name = substitute(x))
The scalar integer to check.
A string of the name of x.
Throws an informative error or returns an invisible copy of x.
try(check_int(1)) #> Error : 1 must be of class 'integer'