powered by
This function validates whether the input is either a logical flag (TRUE/FALSE) or a scalar integer-like value (e.g., 1, 2L, etc.).
TRUE
FALSE
1
2L
check_flag_or_scalar_integerish(x)
TRUE if the input is a valid flag or scalar integerish, otherwise an error message string.
The object to check.