[R] Rscript on OSX

jiho jo.irisson at gmail.com
Wed Jan 9 15:50:09 CET 2008


On 2008-January-09  , at 15:01 , Andrew Beckerman wrote:
> R is not designed to run from
> Terminal.app (actually, terminal does not do graphics well for R).


Actually it can, provided that you:
- install the package CarbonEL which allows you to plot to quartz  
windows from outside R.app (with minor quirks but that's still very  
nice to have)
- set the default plotting device to X11 in your .Rprofile and:
	. do nothing if you are on leopard (since X11 should start  
automatically)
	. if you are on previous versions, add
		export DISPLAY=:0.0
	to you shell startup script (.profile, .bashrc whatever) so that the  
display variable is defined. You'll have to start X11 manually but  
once it is started, you should be able to run X11 apps directly from  
Terminal.app

Hope that helps.

JiHO
---
http://jo.irisson.free.fr/




More information about the R-help mailing list