[R] Running R in the background

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Sep 23 19:23:29 CEST 2002


Jennifer Hespen wrote:
> 
> Hi,
> 
> I am running an R calculation on a Linux machine remotely. The calculations
> take about 5 hours to complete, and inevitably my connection gets reset before
> I finish my calculations. Someone told me that there is a way to invoke R in
> the background, but I have not been able to find out how. Is this possible,
> and if so how?

You can write your code into a file, say myfile.R . Then just start R in
its BATCH mode, an tell the process not to hang up if you are logged
off:

  nohup R BATCH myfile.R &

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list