[R] Summary: output of system() call not returned in Win98
nbarrowman at cheo.on.ca
Fri Jul 6 17:10:38 CEST 2001
A solution to my problem was kindly suggested by Roger Bivand,
namely the list.files() function. Thanks also to Prof. Ripley.
My original message:
> On one machine running Win98 and R 1.2.2 this command works:
> system("command.com /c dir",show=T,invisible=T)
> On another machine also running Win98 and R 1.2.2 it does not.
> Nothing appears.
> On another machine running Win98 and R 1.3.0 it also does not work.
> Is this a known problem? Many thanks for any help.
Reply from Roger Bivand:
> Maybe try:
> which should be less platform-dependent than system() for listing the
> current directory?
That works; thank you!
> Does this also affect the output of programs that are not command shells?
I've had confusing results ... see below.
Reply from Prof. Brian D. Ripley:
> I think your tests prove that the problem is not with R. For what it is
> worth, it works on my Windows 98 machine under 1.3.0.
Based on the confusing results I alluded to above, I think Prof. Ripley
may be correct. I'll summarize to the list once I learn more.
Thanks again to both respondents for their generous help.
Nick Barrowman, Ph.D.
Thomas C. Chalmers Centre for Systematic Reviews
Children's Hospital of Eastern Ontario Research Institute
401 Smyth Road, Ottawa, Ontario, K1H 8L1, Canada
Phone:(613) 738-3971 // Fax:(613) 738-4869
E-mail: nbarrowman at cheo.on.ca
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help