Re: [R] remotely saving an R session

From: Prof Brian Ripley <>
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


to see the problem.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide
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 Please read the posting guide before posting to the list.