[R] Wait for batch file to execute
soni.archit1989 at gmail.com
Thu Apr 13 17:26:34 CEST 2017
Awesome.. Thanks Bert. You saved a lot tension and hours.
Thanks again :)
On Apr 13, 2017 20:49, "Bert Gunter" <bgunter.4567 at gmail.com> wrote:
> ?system or ?system2
> Note the "wait" argument
> 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 <soni.archit1989 at gmail.com>
> > Hi All,
> > I am using below code to execute a batch file on server to get me data
> > an API
> > it looks like:
> > shell.exec('<<path name>>\\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 can I hold R to go for next line of code until and unless
> > batch file has completed its execution.
> > Many thanks.
> > P.S: I tried to use shell() but it says could not find function shell
> > --
> > Regards
> > Archit
> > [[alternative HTML version deleted]]
> > ______________________________________________
> > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/
> > and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help