[R] how i can get input from "user input"

Martin Maechler maechler at stat.math.ethz.ch
Thu Mar 31 09:17:23 CEST 2005


>>>>> "BertG" == Berton Gunter <gunter.berton at gene.com>
>>>>>     on Wed, 30 Mar 2005 10:09:38 -0800 writes:

    BertG> If you are on Windows and want to go GUI, see
    BertG> ?choose.files, ?winMenuAdd, ?winDialog, ?select.list

with the big drawback that it will only work on Windows.

As Uwe says below, it depends on your context;
for relative simple things, however please consider a portable
solution, using
	  	  menu(), readline(), ..

BTW, menu() has been improved in R 2.1.0 (alpha --> please test!),
and is now connected with select.list() which should work on all
platforms (and uses tcltk on Linux when available).


Martin Maechler, ETH Zurich


    BertG> -- Bert Gunter
    BertG> Genentech Non-Clinical Statistics
    BertG> South San Francisco, CA
 
    BertG> "The business of the statistician is to catalyze the scientific learning
    BertG> process."  - George E. P. Box
 
 

    >> -----Original Message-----
    >> From: r-help-bounces at stat.math.ethz.ch 
    >> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Greg Snow
    >> Sent: Wednesday, March 30, 2005 9:45 AM
    >> To: ligges at statistik.uni-dortmund.de; cuiczhao at yahoo.com
    >> Cc: r-help at stat.math.ethz.ch
    >> Subject: Re: [R] how i can get input from "user input"
    >> 
    >> Also look at ?readline
    >> 
    >> Greg Snow, Ph.D.
    >> Statistical Data Center
    >> greg.snow at ihc.com
    >> (801) 408-8111
    >> 
    >> >>> Uwe Ligges <ligges at statistik.uni-dortmund.de> 03/29/05 11:43PM >>>
    >> Cuichang Zhao wrote:
    >> 
    >> > Hello, 
    >> > Could you please tell me how i can get an input from the user in R?
    >> 
    >> Depends on the kind of input.
    >> 
    >> See, e.g., ?scan or ?menu
    >> 
    >> Uwe Ligges
    >> 
    >> 
    >> > C-Ming 
    >> >  
    >> > Mar 29, 2005
    >> > 
    >> > 		
    >> > ---------------------------------
    >> > 
    >> > 
    >> > 	[[alternative HTML version deleted]]
    >> > 
    >> > ______________________________________________
    >> > R-help at stat.math.ethz.ch mailing list
    >> > https://stat.ethz.ch/mailman/listinfo/r-help 
    >> > PLEASE do read the posting guide!
    >> http://www.R-project.org/posting-guide.html 
    >> 
    >> ______________________________________________
    >> R-help at stat.math.ethz.ch mailing list
    >> https://stat.ethz.ch/mailman/listinfo/r-help 
    >> PLEASE do read the posting guide!
    >> http://www.R-project.org/posting-guide.html
    >> 
    >> ______________________________________________
    >> R-help at stat.math.ethz.ch mailing list
    >> https://stat.ethz.ch/mailman/listinfo/r-help
    >> PLEASE do read the posting guide! 
    >> http://www.R-project.org/posting-guide.html
    >> 

    BertG> ______________________________________________
    BertG> R-help at stat.math.ethz.ch mailing list
    BertG> https://stat.ethz.ch/mailman/listinfo/r-help
    BertG> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list