Rev 42333 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grDevices/man/dev.interactive.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{dev.interactive}\alias{dev.interactive}\alias{deviceIsInteractive}\title{Is the Current Graphics Device Interactive ?}\description{Test if the current graphics device (or that which would be opened) isinteractive.}\usage{dev.interactive(orNone = FALSE)deviceIsInteractive(name)}\arguments{\item{orNone}{logical; if \code{TRUE}, the function also returns\code{TRUE} when \code{\link{.Device} == "null device"} and\code{\link{getOption}("device")} is among the knowninteractive devices.}\item{name}{one of more device names, as a character vector, or \code{NULL}.}}\details{There is a list of known interactive devices, and inaddition a current device is regarded as interactive if itsdisplaylist is enabled (see \code{\link{dev.control}}).The \code{X11} (Unix), \code{windows} (Windows) and \code{quartz}(MacOS X) are regarded as interactive, together with \code{GTK}(available in package \pkg{gtkDevice}) and \code{JavaGD} (from thepackage of the same name). Packages can add their devices to the listby calling \code{deviceIsInteractive}.}\value{\code{dev.interactive()} returns a logical, \code{TRUE} if and only if aninteractive (screen) device is in use.\code{deviceIsInteractive} returns the updated list of knowninteractive devices, invisibly.}\seealso{\code{\link{Devices}} for the available devices on your platform.}\examples{dev.interactive()print(deviceIsInteractive(NULL))}\keyword{device}