Re: [Rd] Qt device update

From: Simon Urbanek <>
Date: Fri, 04 May 2007 14:09:44 -0400

On May 3, 2007, at 8:52 PM, Deepayan Sarkar wrote:

> [...] I have a couple of related questions. First, dev.interactive
> (), used in example() and many demo()-s to decide if the current
> device is interactive, is currently implemented as:
>> dev.interactive
> function (orNone = FALSE)
> {
> iDevs <- c("X11", "GTK", "gnome", "quartz", "windows", "JavaGD")
> interactive() && (.Device %in% iDevs || (orNone && .Device ==
> "null device" && getOption("device") %in% iDevs))
> }
> This makes it impossible for new devices to be treated as interactive.

I think we should finally pass this question to the device itself. For some devices like Cairo the answer depends on the parameters with which the device was created (e.g. type='x11' is interactive whereas type='png' is not), so each instance of the device will answer differently. We could simply add an another capability flag - that is IMHO the only reliable solution. Any other ideas?

Simon mailing list Received on Fri 04 May 2007 - 18:36:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 May 2007 - 22:33:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.