readline() (PR#147)
holzer@stat.math.ethz.ch
holzer@stat.math.ethz.ch
Thu, 25 Mar 1999 11:49:26 +0100
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:"
> a <- readline()
hello
> a
[1] "hallo"
> a <- menu(c("a", "b"), title="bitte:")
bitte:
1:a
2:b
Selection: 2
> a <- readline()
Selection: hello
> a
[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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._