dev.interactive | R Documentation |
Test if the current graphics device (or that which would be opened) is interactive.
dev.interactive(orNone = FALSE) deviceIsInteractive(name = NULL)
orNone |
logical; if |
name |
one or more device names as a character vector,
or |
The X11
(Unix), windows
(Windows) and quartz
(macOS, on-screen types only) are regarded as interactive, together
with JavaGD
(from the package of the same name) and
CairoWin
and CairoX11
(from package Cairo).
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 unless name = NULL
.
Devices
for the available devices on your platform.
dev.interactive() print(deviceIsInteractive(NULL))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.