[
top
|
up
]
Is R running interactively ?
Syntax
interactive()
Description
Function to determine if R is running interactively or not.
Value
TRUE
or
FALSE
. It only returns
TRUE
when output is not stdout or input not stdin, i.e. in situations when R is called from the shell as e.g.,
R < inp.R > inp.Rout
.
See Also
source
Examples
.First <- function() if(interactive()) x11()