Check if the current session is on CRAN. The objective is to potentially suppress long tasks to be run on CRAN (long tests or vignettes).
onCran()
logical value TRUE/FALSE
Useful links