[R-SIG-Mac] x11() from terminal.app in 10.3

Thomas Lumley tlumley at u.washington.edu
Sun Dec 7 17:49:36 MET 2003


On Sun, 7 Dec 2003, Stefano Iacus wrote:

> Would it be a problem of setting the DISPLAY env variable?
> 10.3 uses bash as default shell and your profile is now that of bash
> init stuff.

In more detail:

 x11(display=":0")

should work, or Sys.putenv("DISPLAY"=":0") followed by just x11().  In
the normal Unix situation, if you have X running then any terminal window will
have been started from X and so will know about the display.  Under Aqua
this isn't true. The RAqua GUI just assumes that if you want an x11()
window you must have an X server running, but that's in the GUI code.


	-thomas



More information about the R-SIG-Mac mailing list