readline() (PR#147)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
25 Mar 1999 13:08:58 +0100
holzer@stat.math.ethz.ch writes:
> > a <- menu(c("a", "b"), title="bitte:")
> bitte:
> 1:a
> 2:b
> Selection: 2
> > a <- readline()
> Selection: hello
> > a
> [1] "hello"
Obviously a bug, which we'll get around to in due time. I'll just put
this in to remind the fixer that a similar bug got fixed very
recently.
>
> By the way, wouldn't it be nice, if readline() had an argument `text', so
> one wouldn't need to use the ugly construction
>
> cat(text)
> a <- readline()
>
> Default of text could be "", so there would be no problem with
> compatibility.
Good idea.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._