Skip to content

readline() (PR#147)

2 messages · Peter Holzer, Peter Dalgaard

#
Dear R developers,
I have found the following bug with readline() in R 0.63.3:
if you execute the menu-function and then the readline() function, then
readline() prompts "Selection:"
hello
[1] "hallo"
bitte: 
1:a 
2:b 
Selection: 2
Selection: hello
[1] "hello"

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.

Peter

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.5
 arch = sparc
 os = solaris2.5
 system = sparc, solaris2.5
 status = 
 status.rev = 0
 major = 0
 minor = 63.3
 year = 1999
 month = March
 day = 6
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
holzer@stat.math.ethz.ch writes:
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.
Good idea.