[R] Calling R from R and specifying "wait until script is finished"
Duncan Murdoch
murdoch at stats.uwo.ca
Sun May 22 06:43:56 CEST 2005
Lapointe, Pierre wrote:
> Hello,
>
> Let's say I have 50 R scripts to run. What would be the most efficient way
> to run them?
>
> I thought I could do multiple Rterms in a DOS batch file:
>
> Ex:
> Rterm <1.R> 1.txt
> Rterm <2.R> 2.txt
> ...
> Rterm <50.R> 50.txt
>
> However, I'm afraid they will all open at the same time.
That could be a problem if you had used Rgui (depending on which shell
you are using), but Rterm should run until completion before the next
line of the batch file will start.
Duncan Murdoch
I know I could
> pause the batch file with something like:
>
> PING 1.1.1.1 -n 1 -w 60000 >NUL (to delay 60 seconds)
>
> But that would require that I know how long each of my scripts take.
>
> Is there an easier way? Something like calling R from R and specifying that
> the script has to be finished before continuing.
>
> Thanks
>
> Pierre Lapointe
>
>
>
> ***********************************************************************************
> AVIS DE NON-RESPONSABILITE:\ Ce document transmis par courri...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list