Re: [R] asking the user for data

From: Gabor Grothendieck <>
Date: Sun 16 Oct 2005 - 23:13:06 EST

Use readline for a text dialog or use tkentry from the tcltk package as shown in the Edit Box example at:

On Windows other possibilities exist as well: winDialogString and in package svDialog there is guiDlg .

Also check out qnorm .

On 10/16/05, Iain Gallagher <> wrote:
> Hello everyone.
> How do I get R to ask users for data to be entered? Specifically I want
> to ask for a z score to be entered (the user would look this up in a
> table) and then use the entered data to compute a Dunn's post-hoc test
> (post kruskal.test).
> I've tried the "ask" function but it's not recognised - maybe I don't
> have to appropriate libary installed. A pointer to the right one would
> be appreciated.
> e.g >z <-ask(message="Please enter the z value for" x)
> Any help would be gratefully received.
> Thanks
> Iain Gallagher
> Institiute for Infection and Immunology Research
> Edinburgh University
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Sun Oct 16 23:33:44 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:56:17 EST