dev.interactive {grDevices} | R Documentation |
Test if the current graphics device (or that which would be opened) is interactive.
dev.interactive(orNone = FALSE) deviceIsInteractive(name)
orNone |
logical; if TRUE , the function also returns
TRUE when .Device == "null device" and
getOption("device") is among the known
interactive devices. |
name |
one of more device names, as a character vector, or NULL . |
There is a list of known interactive devices, and in
addition a current device is regarded as interactive if its
displaylist is enabled (see dev.control
).
The X11
(Unix), windows
(Windows) and quartz
(MacOS X) are regarded as interactive, together with GTK
(available in package gtkDevice) and JavaGD
(from the
package of the same name). Packages can add their devices to the list
by calling deviceIsInteractive
.
dev.interactive()
returns a logical, TRUE
if and only if an
interactive (screen) device is in use.
deviceIsInteractive
returns the updated list of known
interactive devices, invisibly.
Devices
for the available devices on your platform.
dev.interactive() print(deviceIsInteractive(NULL))