The R Project SVN R

Rev

Rev 7081 | Rev 48662 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7081 Rev 7782
Line 1... Line 1...
1
\name{interactive}
1
\name{interactive}
-
 
2
\alias{interactive}
2
\title{Is R Running Interactively?}
3
\title{Is R Running Interactively?}
-
 
4
\description{ 
-
 
5
  Return \code{TRUE} when \R is being used interactively and
-
 
6
  \code{FALSE} otherwise.
-
 
7
}
3
\usage{
8
\usage{
4
interactive()
9
interactive()
5
}
10
}
6
\alias{interactive}
-
 
7
\value{
-
 
8
This function returns \code{TRUE} when \R is being used interactively
-
 
9
and \code{FALSE} when not.
-
 
10
}
-
 
11
\seealso{
11
\seealso{
-
 
12
  \code{\link{source}},
12
\code{\link{source}}, \code{\link{.First}}
13
  \code{\link{.First}}
13
}
14
}
14
\examples{
15
\examples{
15
 .First <- function() if(interactive()) x11()
16
 .First <- function() if(interactive()) x11()
16
}
17
}
17
\keyword{environment}
18
\keyword{environment}