[R] How to use bash command in R script?
Peter Dalgaard
P.Dalgaard at biostat.ku.dk
Tue Feb 27 09:01:58 CET 2007
Guo Wei-Wei wrote:
> Thank you all! I solved my problem with your help.
>
Come to think of it, it might be more to the point to use scan() on a
pipe():
con <- pipe("mxresult.sh ABC.mx", "r")
mynum <- scan(con)
close(con)
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list