Skip to content

X11 and R - very beginners question

7 messages · thatsanicehatyouhave at mac.com, Matthew Keller, Graham Smith +1 more

#
Hi Graham,
X11 is the windowing system on unix/linux operating systems. Since  
the move to OS X, it has been available as an optional install on the  
Mac as well to enable people to run unix-based apps unmodified. With  
respect to R, using X11 windows is just an option IF you have X11  
installed.

The Mac windowing system is called Quartz (hence, the Mac-only R  
function quartz() to open a new window).

You can go about using R on the Mac without using X11 windows at all.  
What I tell most people who ask is, if you don't know what X11 is,  
you don't need it. :) The support is useful on the Mac as you have  
the option to run R from the Terminal and not use R.app at all, but  
unless there's a specific reason to do this, I wouldn't.

Cheers,

Demitri
#
Graham,

X11 is a window system used for applications that come from the unix  
world and have not been ported to Mac OS X window system (Aqua) yet.  
There is a handful of packages in R that require it (e.g. tcltk,  
RGtk2 and friends), as well as some R bitmap output routines (png,  
jpeg..) and the X11 R device (unsurprisingly). You don't have to use  
any of those (there are better options e.g. for the bitmap output),  
but if you do, you have to start X11.

Cheers,
Simon
On Aug 14, 2007, at 7:15 AM, Graham Smith wrote:

            
#
Hi all,

I would just add that if you run R from within Emacs on a mac
(Aquamacs or Carbon or one of the others), it's handy to have X11
installed & started in order to have graphics windows. There are
several threads on the r-sig-mac that go over how to get this
working...

Matt
On 8/14/07, Simon Urbanek <simon.urbanek at r-project.org> wrote:

  
    
#
On Aug 14, 2007, at 12:38 PM, Matthew Keller wrote:

            
Just as a side note, since CarbonEL you don't have to do it anymore  
as you can use the native graphics (also see the relevant posts).  
Nevertheless, I believe ESS/X11 usage it is still more of a religious  
issue ;).

Cheers,
Simon
#
Ah, thanks again, that will have saved me chasing around for X11,
should I go back to using Emacs.

Graham
On 14/08/07, Simon Urbanek <simon.urbanek at r-project.org> wrote: