Return TRUE when R is being used interactively and FALSE otherwise.
TRUE
FALSE
interactive()
source, .First
source
.First
.First <- function() if(interactive()) x11()