[ top | up ]

Is R running interactively ?

Syntax

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()