Re: [R] function for running MS-DOS from R

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Fri 21 May 2004 - 02:47:36 EST


Message-id: <40ACE128.30803@statistik.uni-dortmund.de>

Gabor Grothendieck wrote:
> 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")
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Or shell(), which is the more user-friendly wrapper for system() under
Windows.

Uwe Ligges

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST