Skip to content
Prev 3325 / 15075 Next

Using a second monitor, running R under Unix

Hi James,

This is because of the different between the Quartz and X11 Window
Server notion of How The World Works. Quartz event processing is an
in-process thing such that ALL events, including window dragging, must
be handled by the in-process event loop. When you start a Quartz
device when running in ESS there effectively isn't an event loop to do
the processing so you don't get to drag windows around. To top it off,
I believe the server may also differentiate between interactive and
non-interactive applications so despite getting access to the server
they can't receive events (but my memory here is hazy).

In Mojave I had a function that actually gave you an event loop by
putting the console reader onto a separate thread and pumping the
event loop on the main thread, which seemed to work pretty well. It
also used an undocumented call to give you an interactive application,
which had the unfortunate side effect of a weird (unusable) dock icon,
but let you use a graphics device. I'll try to dig up a copy of that
(I took it out of the svn Mojave for reasons I've forgotten :-) ) and
post it somewhere. IIRC you might also get a bonus quartz graphics
device I was experimenting with. :-)
On 1/14/07, John Maindonald <john.maindonald at anu.edu.au> wrote: