[R] Sweave and X11 on OSX 10.3

Thomas Lumley tlumley at u.washington.edu
Wed Jan 7 17:30:04 CET 2004


On Wed, 7 Jan 2004 Friedrich.Leisch at ci.tuwien.ac.at wrote:

> open. I don't know too much about MacOS X, but having the DISPLAY
> variable set without having an X11 server surely means asking for
> trouble on Linux, and I guess MacOS X is not different ...
>

Yes, except there is no excuse for doing this under Linux and there are
good reasons for doing it on OS X.  Under Linux, if you are running X then
all your terminals were probably started after the X server, and they are
usually children of the X root window.  Under OS X the terminals are
usually started independently of X11 and may have been running before the
X server was started.  I don't know any automatic way to have DISPLAY set
correctly when the server is running and unset when it isn't.

The result is that you either need to have DISPLAY set in .tcshrc or
equivalent, or remember to set it when needed.


	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list