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

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Thu 31 Mar 2005 - 17:17:23 EST

>>>>> "BertG" == Berton Gunter <gunter.berton@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@stat.math.ethz.ch
>> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Greg Snow
>> Sent: Wednesday, March 30, 2005 9:45 AM
>> To: ligges@statistik.uni-dortmund.de; cuiczhao@yahoo.com
>> Cc: r-help@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@ihc.com
>> (801) 408-8111
>>
>> >>> Uwe Ligges <ligges@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@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@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@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@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

R-help@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 Received on Thu Mar 31 17:23:00 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:57 EST