[Rd] Qt device update

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu, 03 May 2007 17:52:01 -0700


Hi,

a few days back I had asked for help on a Qt device package. Thanks to hints from Duncan TL and Thomas Friedrichsmeier, I now have something more or less functional. For those interested, It can be downloaded from

http://dsarkar.fhcrc.org/R/R-Qt.html

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. Perhaps it would be better to change this to something like

    iDevs <- c("X11", "GTK", "gnome", "quartz", "windows", "JavaGD",

               getOption("interactive.devices"))

so that packages can set an option to be included in this list.

Second, can someone explain the details of what happens when a symbol font is requested (with font=5 or with plotmath stuff)? demo(plotmath) seems to work on a machine with LANG=en_US (I don't know what encoding this means, probably latin1), but some symbols don't work on my desktop which has en_US.UTF-8. Presumably, this means I have to interpret the encoding differently, but what exactly is the rule? Is it enough to treat it as latin1? Some devices have a lot of code dealing with encodings, and I want to make sure I understand the issues before I go off on a wild goose chase.

-Deepayan



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 04 May 2007 - 00:54:27 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 - 19:33:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.