Re: [R] user input

From: Andreas Borg <>
Date: Wed, 20 Apr 2011 11:51:54 +0200

Hi Ivan,

there are also data.entry() and edit(), which are more tailored to data frames and might look awkward for entering a single value. You could also take a look at CRAN, maybe there is a GUI package that does what you want.


Ivan Calandra schrieb:
> Dear users,
> I have looked on different sources and found different functions to
> prompt the user to provide input. However, I couldn't find one that
> does exactly what I'm looking for.
> select.list() and menu() are nice because a graphic window appears to
> prompt the user. However, the user can only choose from a predefined
> list of choices. readline() and scan() are more free in the input but
> prompt the user in the console.
> Examples:
> a <- select.list(choices=c("0.0","0.1","0.2"), title="select number")
> a ## I cannot choose "0.15"
> [1] "0.1"
> b <- readline(prompt="select number ")
> select number 0.2 ## in the console, not really visible
> b
> [1] "0.2"
> I would like both "free" input and a pop-up window. Is there a
> function for this?
> Thanks in advance,
> Ivan

Andreas Borg
Medizinische Informatik

der Johannes Gutenberg-Universität
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Obere Zahlbacher Straße 69, 55131 Mainz

Telefon +49 (0) 6131 175062

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser Mail und der darin enthaltenen Informationen ist nicht gestattet.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 20 Apr 2011 - 09:52:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Apr 2011 - 12:30:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive