Mr Toby Daniel Ahrens
2005-Sep-12 22:22 UTC
[R] Running DOS command prompt from R 2.0.1 Windows?
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
Thomas Petzoldt
2005-Sep-13 07:05 UTC
[R] Running DOS command prompt from R 2.0.1 Windows?
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, > > TobyYes, 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.