[R] remotely saving an R session
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Thu Sep 21 12:04:23 CEST 2006
Jeffrey Horner wrote:
> $ 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.
Remember? With a computer, you never need to remember!
$ ls -l /proc/$pid/cwd
is a symlink to the current working directory. Even if you change it
with setwd() in R, it is still correct.
Barry
More information about the R-help
mailing list