From p.dalgaard@biostat.ku.dk  Thu Mar 25 12:08:58 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 25 Mar 1999 13:08:58 +0100
Subject: readline() (PR#147)
In-Reply-To: holzer@stat.math.ethz.ch's message of "Thu, 25 Mar 1999 11:49:26 +0100"
References: <199903251049.LAA17284@blueberry.kubism.ku.dk>
Message-ID: <x2n211zs85.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


readline() (PR#147)
Peter Dalgaard BSA