[Rd] R --interactive and readline() creates infinite loop

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Sep 25 17:38:37 CEST 2008


John Chambers wrote:
> My application, at least, wanted to show (my class) individual 
> commands from the file and then optionally insert some typed commands 
> before going on to the next part of the source file. As far as I can 
> see, the piped shell command approach will have to treat the whole 
> file at one time.
Hmmno... You can "cat -" multiple times if you want, terminating each 
with ctrl-D. That's not to say that it is the optimal solution though. 
Echoing the non-keyboard input seems a bit tricky, for instance.

-- 
   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-devel mailing list