[R] capturing output from Win 98 shell
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Tue Aug 12 16:41:46 CEST 2003
"Simon Fear" <Simon.Fear at synequanon.com> writes:
> > system("COMMAND.COM /c dir /b", intern=T, show.output.on.console=T)
> character(0)
> > print(system("COMMAND.COM /c dir /b", intern=F,
> show.output.on.console=T))
> [1] 0
>
> In both cases here a DOS window opens and lists a couple of hundred
> files,
> before giving the above output.
Does it help if you drop the "COMMAND.COM /c" bit??
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list