Re: [R] apologies if you aready received this ?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 09 Jun 2006 - 04:45:52 EST

Seth Falcon <sfalcon@fhcrc.org> writes:

> <markleeds@verizon.net> writes:
> > Basically, I wrote a function called wait()
> >
> >
> > wait<-function()
> > {
> > cat("press return to continue")
> > unix("read stuff")
> > }
>
> Is readline what you want? See help(readline).

...and the generic issue here is that system() calls the system shell, and if that doesn't know of a "read" command, you're up the proverbial roof without a paddle.

If you really insist of unix() functionality, you need a Unix-like subsystem. You could start by installing bash.exe and do things like system("bash -c read stuff") but you'll soon realize that you also need all of the programs that are traditionally available on Unix.

-- 
   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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jun 09 04:49:39 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 09 Jun 2006 - 06:10:39 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.