Examples for 'base::is.R'


Are we using R, rather than S?

Aliases: is.R

Keywords: environment utilities

### ** Examples

x <- stats::runif(20); small <- x < 0.4
## In the early years of R, 'which()' only existed in R:
if(is.R()) which(small) else seq(along = small)[small]
 [1]  1  3  4  5  6  8 11 13 15 16 18 20

[Package base version 4.2.3 Index]