| interactive {base} | R Documentation |
Is R running interactively ?
Usage
interactive()
Value
This function returns TRUE when R is being used interactively
and FALSE when not.
See Also
source
Examples
.First <- function() if(interactive()) x11()