View source: R/isExpensiveExampleOk.R
isExpensiveExampleOk | R Documentation |
Queries environment variable “R_EXPENSIVE_EXAMPLE_OK”.
Returns TRUE
iff set exactly to “TRUE”.
This allows conditional checking of expensive examples in packages
via R CMD CHECK, so they are not run on CRAN, but at least
on your local computer.
A better option than “dont_run” in many cases, where such examples
are not checked at all.
isExpensiveExampleOk()
[logical(1)
].
# extremely costly random number generation, that we dont want checked on CRAN if (isExpensiveExampleOk()) { runif(1) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.