Re: [R] remotely saving an R session

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 21 Sep 2006 - 08:24:30 GMT

On Wed, 20 Sep 2006, Jeffrey Horner wrote:

> Gamal Azim wrote:
>> Is it possible to remotely save an R session then
>> terminate R? Of course the destructive task after
>> 'then' is rather straightforward by itself.
>
> Yes. Sending the process a SIGUSR1 signal:
>
> $ kill -USR1 pid
>
> will save the global environment in the file .RData, but you'll need to
> remember the current working directory of the process to find it.

That is indeed what this is documented to do (and I mentioned in an R-devel posting yesterday). Unfortunately it currently does not always work: try it on a session running

try(repeat{1})

to see the problem.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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.
Received on Thu Sep 21 18:29:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 21 Sep 2006 - 09:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.