Skip to content

Using X11 from the mac terminal

7 messages · Hadley Wickham, Benilton Carvalho, Duncan Murdoch +2 more

#
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma,
d$colortype,  :
  unable to start device X11
In addition: Warning message:
In X11() : unable to open connection to X11 display ''

What am I doing wrong?  X11 is open, and I have
[1] "0.0.0.0:0"

I'm sure this used to work, but something has changed in the last few
months.  Any ideas?

Thanks!

Hadley
#
I know this sounds obvious... but whenever such weird things happen to
me, I close R, kill X11 and fire up R again... and the problems go
away....

b
On 6 June 2011 23:56, Hadley Wickham <hadley at rice.edu> wrote:

  
    
#
Should have mentioned I already tried that :(
Hadley

On Mon, Jun 6, 2011 at 4:13 PM, Benilton Carvalho
<beniltoncarvalho at gmail.com> wrote:

  
    
#
On 11-06-06 6:56 PM, Hadley Wickham wrote:
I'm on a Mac right now that works, but it shows

 > X11()
 > Sys.getenv("DISPLAY")
[1] "/tmp/launch-OjzUQo/org.x:0"

Duncan Murdoch
#
Hadley,

I get the same result as Duncan, sessionInfo() attached:
[1] "/tmp/launch-00BR0w/org.x:0"
R version 2.13.0 Patched (2011-05-26 r55996)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/C/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

And X11 

XQuartz 2.3.6 (xorg-server 1.4.2-apple56)


cheers

Ben
On 07/06/2011, at 9:10 AM, Duncan Murdoch wrote:

            
#
If you are like me and absolutely hate the Apple auto-X11 setting and disabled it then something like
X11(":0.0")
should work *after* you start X11. If in doubt, open the xterm and look at
echo $DISPLAY
sometimes it may be something like :2 instead (it depends on your other X11 processes, weather and the constellation of stars...)

Cheers,
Simon
On Jun 6, 2011, at 10:07 PM, Ben Madin wrote:

            
#
Ah, that seems to be the problem - thanks!
Hadley

On Mon, Jun 6, 2011 at 7:14 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote: