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

hadley wickham h.wickham at gmail.com
Tue May 22 16:53:59 CEST 2007


On 5/22/07, Simon Urbanek <simon.urbanek at r-project.org> wrote:
>
> On May 22, 2007, at 6:53 AM, Duncan Murdoch wrote:
>
> > 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...]
> >
>
> Not a good idea ;) The window closes and the poor locator has no
> window to wait for clicks so it feels lonely and crashes R out of
> boredom... ;)
> Should be fixed now.

Thanks Simon - I still get

> plot(1:10)
CGGStackRestore: gstack underflow.

whenever I plot anything.

Hadley



More information about the R-SIG-Mac mailing list