[R] Running DOS command prompt from R 2.0.1 Windows?
Thomas Petzoldt
thpe at hhbio.wasser.tu-dresden.de
Tue Sep 13 09:05:44 CEST 2005
Mr Toby Daniel Ahrens wrote:
> I am trying to use R (windows version 2.0.1) to manage runs of a program
> that is run from a DOS command prompt. Is R able to call a DOS prompt? I
> am hoping that there is something analogous to the "spawn" command in IDL,
> but I can't see to find any help in the R archives...
>
> Thanks very much,
>
> Toby
Yes, e.g. system("cmd") to get a "DOS" prompt. See ?system or ?shell for
details. You may consider to use wait=FALSE if you want a non-modal
behavior.
HTH Thomas P.
More information about the R-help
mailing list