search for: notcran

Displaying 1 result from an estimated 1 matches for "notcran".

Did you mean: notaran
2012 Sep 03
4
if(--as-cran)?
...ests that run too long for CRAN's current rules. I'd like to wrap some examples in a construct like the following: if(!CRAN()){ ... } I tried the following: CRAN <- function(x='_R_CHECK_CRAN_INCOMING_'){ x. <- Sys.getenv(x) xl <- as.logical(x.) notCRAN <- is.na(xl) || xl # return(!notCRAN) } The companion help page included the following example: if(CRAN()){ stop('CRAN') } else { stop('NOT CRAN') } This reported "NOT CRAN" even with "R CMD check --as-cran". Suggestions...