Is \R running interactively ?

Usage

interactive()

Value

This function returns TRUE when R is being used interactively and FALSE when not.

See Also

source, .First

Examples

 .First <- function() if(interactive()) x11()


[Package Contents]