Skip to content
Prev 8713 / 15075 Next

Lion and X11

Dear Simon,

Thank you for your replies, I understand now your explanation about R.app.

I do not think that the topic on the locale is unrelated to the plot 
problem, since adding to .bashrc:
   export LC_CTYPE=en_US.UTF-8
   export LC_ALL=en_US.UTF-8
does solve the problem with plot(), as you can see from the following 
output:

 > Sys.getenv("DISPLAY")
[1] ":0"
 > sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

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

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
 > plot(1:8)
 >

It is still not clear to me why I need to add above lines to .bashrc, 
since on my Snow Leopard machine this is not necessary. The locale there 
is also only C.

BTW, to run R I start always X11.app first and then start R from xterm, 
I do not use the Terminal.

Best regards
Christian
On 1/29/12 12:03 AM, Simon Urbanek wrote: