Description Usage Details Value See Also Examples
Test if running under R.
1 | is.R()
|
The function has been written such as to correctly run in all versions
of R, S and S-PLUS.
In order for code to be runnable in both R and S dialects previous to
S-PLUS 8.0, your code must either define is.R
or use it as
if (exists("is.R") && is.function(is.R) && is.R()) {
## R-specific code
} else {
## S-version of code
}
is.R
returns TRUE
if we are using R and FALSE
otherwise.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.