x. <- Sys.getenv(x)
xl <- as.logical(x.) return((!is.na(xl)) || xl)
This returns FALSE either if the environmental variable is not found
or it is not TRUE.
Duncan Murdoch noted that the following variables are set by
"--as-cran": _R_CHECK_TIMINGS_, _R_CHECK_INSTALL_DEPENDS_,
_R_CHECK_NO_RECOMMENDED_, and _R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_.
For this purpose, he suggested we use the first.