Re: [R] Way to make R idle for some time and try something again later

From: Berton Gunter <gunter.berton_at_gene.com>
Date: Sat 30 Jul 2005 - 05:44:51 EST


Dear Tae-Hoon:

  1. RSiteSearch('wait') will tell you that Sys.sleep() is what you want. Although this list is terrific, R's built-in help/search tools should always be tried first (they're faster when you hit the right search term).
  2. The other part of the puzzle is ?try
    • Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA

"The business of the statistician is to catalyze the scientific learning process." - George E. P. Box    

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Tae-Hoon Chung
> Sent: Friday, July 29, 2005 12:13 PM
> To: RHelp
> Subject: [R] Way to make R idle for some time and try
> something again later
>
> Hi, All;
>
> I have a question. In R, what is the best way to make R idle
> for a while and
> try something again later? For example, suppose there is an R
> job which
> accesses a file that may be shared with other active jobs. So
> when the file
> is being accessed by other job, your job will not be able to
> access the file
> and your job will crash because of that. To avoid this, you
> want your job to
> try to access the file repeatedly with some time interval,
> say every 10
> seconds or something like that. Which is the best way to do this in R?
>
> Thanks in advance,
>
> Tae-Hoon Chung
>
> Post-Doctoral Researcher
> Translational Genomics Research Institute (TGen)
> 445 N. 5th Street (Suite 530)
> Phoenix, AZ 85004
> 1-602-343-8724 (Direct)
> 1-480-323-9820 (Mobile)
> 1-602-343-8840 (Fax)
>
> ______________________________________________
> R-help@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
>



R-help@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 Received on Sat Jul 30 05:53:17 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 14:59:35 EST