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

2005-08-15 Thread Don MacQueen
At 6:44 AM +0100 7/30/05, Prof Brian Ripley wrote: This depends on what else is going on. My guess is that you are running the Aqua GUI, and it is servicing the GUI which is taking the time, not R itself. Actually, no, I am not using the Aqua GUI. Not even a framework build:

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

2005-07-29 Thread Tae-Hoon Chung
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

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

2005-07-29 Thread Duncan Murdoch
On 7/29/2005 3:13 PM, Tae-Hoon Chung wrote: 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

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

2005-07-29 Thread Adaikalavan Ramasamy
Which operating system are you using ? See help(Sys.sleep), which might be what you want but there may be other ways in determining if a file is being accessed by another program. Regards, Adai On Fri, 2005-07-29 at 12:13 -0700, Tae-Hoon Chung wrote: Hi, All; I have a question. In R, what

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

2005-07-29 Thread Berton Gunter
: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

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

2005-07-29 Thread Don MacQueen
I done something very similar -- have R watch a file, and whenever new data is added to the file, read the new data from the file. In my case, new data was arriving once per minute, so I needed to have R wait about a minute before looking for new data. On my unix-based system, I found that if

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

2005-07-29 Thread Duncan Murdoch
Don MacQueen wrote: I done something very similar -- have R watch a file, and whenever new data is added to the file, read the new data from the file. In my case, new data was arriving once per minute, so I needed to have R wait about a minute before looking for new data. On my

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

2005-07-29 Thread Prof Brian Ripley
This depends on what else is going on. My guess is that you are running the Aqua GUI, and it is servicing the GUI which is taking the time, not R itself. On all of Linux, Solaris and Windows (RGui or Rterm) Sys.sleep() does use very close to zero resources at the beginning of a session, but