Skip to content

Running DOS command prompt from R 2.0.1 Windows?

2 messages · Mr Toby Daniel Ahrens, Thomas Petzoldt

#
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
#
Mr Toby Daniel Ahrens wrote:
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.