[R] Sweave and X11 on OSX 10.3

Friedrich.Leisch@ci.tuwien.ac.at Friedrich.Leisch at ci.tuwien.ac.at
Wed Jan 7 17:35:20 CET 2004


>>>>> On Wed, 7 Jan 2004 08:30:04 -0800 (PST),
>>>>> Thomas Lumley (TL) wrote:

  > 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.

I see, could in this case R for the Mac be smarter about what the
default graphics device should be? This is not an Sweave issue, it
simply means that under the setup described above any call to plot()
---without actively opening a device first---will fail ...

.f




More information about the R-help mailing list