[R] remotely saving an R session

Jeffrey Horner jeff.horner at vanderbilt.edu
Thu Sep 21 06:00:54 CEST 2006

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.

Good luck!


More information about the R-help mailing list