[R] function for running MS-DOS from R

Gabor Grothendieck ggrothendieck at myway.com
Thu May 20 13:22:20 CEST 2004


bang jeong sook <quietroom78 <at> hotmail.com> writes:

> 
> I had downloaded the program that runs on MS-DOS.
> Is it possible for MS-DOS to be run in R such as WinBugs1.4?
> I wonder whether there is the R function for running MS-DOS from R.

On my XP system this works:

R> system("cmd")

to drop into the Windows command line and exit at the
Windows command line get you back.  

One can slso do this:

R> system("cmd /c dir > listing.txt")
R> listing <- readLines("listing.txt")




More information about the R-help mailing list