On Mon, 19 Feb 2007, Benilton Carvalho wrote:

> Hi Nils,
>
> if the server you're using is *NIX, this is what you can do:
>
> %%%% example
> ssh [EMAIL PROTECTED]
> screen
> R
>
> << do what you need in R>>
> << close the terminal without quitting R >>
>
> ssh [EMAIL PROTECTED]
> screen -r
> << continue working in R >>
> %%%%%% end example
>
> the "problem" is if you need X... it works until you quit the
> terminal, but "screen -r" doesn't reconnect the X11.

I find vnc sometimes helps with keeping a X active for an R session.

Also, if you take care to close your x11 devices, and if when you re-ssh 
you happen to get the same forwarded X DISPLAY=localhost:11.0 or whatever, 
the R session in screen will use the new forwarded connection.

It also seems like using Sys.putenv(DISPLAY='localhost:11.0')  overrides 
the DISPLAY that screen's child R session inherits from the initial 
invocation of screen.

Dave
-- 
  Dr. David Forrest
  [EMAIL PROTECTED]                                    (804)684-7900w
  [EMAIL PROTECTED]                             (804)642-0662h
                                    http://maplepark.com/~drf5n/

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to