\HeaderA{interactive}{Is R Running Interactively?}{interactive}
\keyword{environment}{interactive}
\keyword{programming}{interactive}
\begin{Description}\relax
Return \code{TRUE} when \R{} is being used interactively and
\code{FALSE} otherwise.
\end{Description}
\begin{Usage}
\begin{verbatim}
interactive()
\end{verbatim}
\end{Usage}
\begin{SeeAlso}\relax
\code{\LinkA{source}{source}},
\code{\LinkA{.First}{.First}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 .First <- function() if(interactive()) x11()
\end{ExampleCode}
\end{Examples}

