[R-SIG-Mac] [R] quartz() on MAC OSX

Duncan Murdoch murdoch at stats.uwo.ca
Tue May 22 12:53:40 CEST 2007


hadley wickham wrote:
> On 5/22/07, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
>   
>> On 21/05/2007 6:03 PM, Rolf Turner wrote:
>>     
>>> On 22/5/07 6:48 AM, "hadley wickham" <h.wickham at gmail.com> wrote:
>>>
>>>       
>>>> Hi Rolf,
>>>>
>>>> Two possible solutions:
>>>>
>>>>  * DISPLAY=0.0.0.0:0 R - and then X11() should work without having to use
>>>> xterm
>>>>
>>>>  * install.packages("CarbonEL"); library(CarbonEL); quartz()
>>>>         
>>> It is clear that life is determined to frustrate me.  I had a look at CRAN
>>> just now and could find no sign of a package called "CarbonEL".  The list
>>> jumps from "car" to "cat" --- no "Carbon" of any flavour.  What gives?
>>>       
>> I think the Mac page on CRAN points to something obsolete.  From the R
>> GUI, CarbonEL is visible.  You can also find the source on SourceForge
>> using Google.
>>
>> However, it didn't work for me:  I still get the "interactivity reduced"
>> message, and when I try to plot something, just an error
>> "CGGSStackRestore:  gstack underflow."
>>     
>
> I get those messages too, but the plot actually works for me.  Does
> the quartz window open for you?  Can you interact with it?  (move it,
> change the size etc).
>   
(Moved from R-help.)

I took a closer look:  I actually did get the window (hidden under my 
terminal window), and
interactivity worked partially:  I could use identify, for example.  But 
when I clicked on the red close
button on the graphics window, it kicked me right out of R:

 > library(CarbonEL)
 > plot(1:10,1:10)
 > quartz()
Warning message:
quartz() device interactivity reduced without an event loop manager in: 
quartz()
 > plot(1:10,1:10)
CGGStackRestore: gstack underflow.
 > identify(1:10,1:10)

[Worked fine, then I clicked on the red button...]

 *** caught segfault ***
address 0xff020000, cause 'memory not mapped'

Traceback:
 1: identify.default(1:10, 1:10)
 2: identify(1:10, 1:10)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:


Duncan Murdoch



More information about the R-SIG-Mac mailing list