Check if R CMD CHECK is currently running
Value
A boolean: TRUE if the system environment variable
'R_CHECK_PACKAGE_NAME' is non-empty (which should indicate that
'R CMD CHECK' is currently running), otherwise FALSE.
Examples
if (FALSE) { # \dontrun{
is_r_cmd_check()
} # }