Re: [R] Wait for batch file to execute

2017-04-13 Thread Jeff Newmiller
For future reference, this kind of question should usually be accompanied by information about your OS such as the sessionInfo function returns... but in this case just read about the wait argument to ?system2. -- Sent from my phone. Please excuse my brevity. On April 13, 2017 8:06:04 AM PDT, A

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Thanks Jeff.. Will keep in mind. On Apr 13, 2017 20:54, "Jeff Newmiller" wrote: > For future reference, this kind of question should usually be accompanied > by information about your OS such as the sessionInfo function returns... > but in this case just read about the wait argument to ?system2.

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Awesome.. Thanks Bert. You saved a lot tension and hours. Thanks again :) On Apr 13, 2017 20:49, "Bert Gunter" wrote: > ?system or ?system2 > > Note the "wait" argument > > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticki

Re: [R] Wait for batch file to execute

2017-04-13 Thread Bert Gunter
?system or ?system2 Note the "wait" argument Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Apr 13, 2017 at 8:06 AM, Archit Soni wrote:

[R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Hi All, I am using below code to execute a batch file on server to get me data from an API it looks like: shell.exec('<>\\file.bat') #do next step The problem is that this function shell.exec doesn't wait for the batch file to execute completely and jumps to next line of code. Any ideas how ca