# Look in fda-ex.R
# for the results from R CMD check
# Modified defaults were tested with environment variables
# _CRAN_pattern_ = 'A' and _n_R_CHECK4CRAN_ = '10'
# 'R CMD check' found 26 matches and CRAN() returned TRUE
cran <- CRAN()
str(cran)
gete <- attr(cran, 'Sys.getenv')
(ngete <- names(gete))
iget <- grep('^_', names(gete))
gete[iget]
# if (!CRAN()) {
# if (CRAN()) {
# stop("CRAN")
# } else {
# stop("NOT CRAN")
# }
# }
Run the code above in your browser using DataLab