[R] How to execute multiple R scripts sequentially in unix background
ligges at statistik.tu-dortmund.de
Fri May 21 10:26:11 CEST 2010
On 21.05.2010 09:29, Yong Wang wrote:
> Dear list
> I need to 1) run several R scripts sequentially due to results waiting
> and 2) run them in unix background since my ssh frequently timeout for
> some reason.
> if paste following codes to unix
> R --vanilla script1&
> R --vanilla script2&
> R --vanilla script3&
1. Write a shell script that does the above, or
2. Write an R "script" that contains the lines:
and call it via
R --vanilla script
or or or.....
> will result in simultaneous instead of sequential execution of the
> three scripts.
> source() might be an alternative, however, I am not clear how to run
> it in the background.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help