[R-SIG-Mac] Using X11 from the mac terminal
Simon Urbanek
simon.urbanek at r-project.org
Tue Jun 7 04:14:29 CEST 2011
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:
> Hadley,
>
> I get the same result as Duncan, sessionInfo() attached:
>
>> X11()
>> Sys.getenv("DISPLAY")
> [1] "/tmp/launch-00BR0w/org.x:0"
>> sessionInfo()
> 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:
>
>> On 11-06-06 6:56 PM, Hadley Wickham wrote:
>>>> X11()
>>> 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
>>>
>>>> Sys.getenv("DISPLAY")
>>> [1] "0.0.0.0:0"
>>>
>>> I'm sure this used to work, but something has changed in the last few
>>> months. Any ideas?
>>
>> 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
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
More information about the R-SIG-Mac
mailing list