Re: [R] equivalent of windialog on unix??

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 13 Jun 2007 15:48:09 +0100 (BST)

On Wed, 13 Jun 2007, BaKaLeGuM wrote:

> this is the answer :)
>
> toto <- tkmessageBox(title = "Rcmdr",
> message = "Do you want to install Rcmdr?", icon = "question", type =
> "yesno")
> if (as.character(toto)=="yes"){
>
> it work on windows and unix (and i think mac)

Only if you have tcl/tk installed and an X11 server accessible. E.g. it does not work on a remote machine in general.

> 2007/6/13, Prof Brian Ripley <ripley@stats.ox.ac.uk>:
>>
>> ?readline
>>
>> On Wed, 13 Jun 2007, BaKaLeGuM wrote:
>>
>> > I have on a script something like this
>> > "
>> >
>> > toto = winDialog("yesno", "Do you want to install the package")
>> > if (toto=="YES"){
>> >
>> > "
>> >
>> > but it dont work on unix because of the "winDialog" i think..
>> >
>> > how can i do to change this for unix please?
>> >
>> > best regards
>> >
>> > vincent
>> >
>> > [[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
>> > and provide commented, minimal, self-contained, reproducible code.
>> >
>>
>> --
>> Brian D. Ripley, ripley_at_stats.ox.ac.uk
>> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
>> University of Oxford, Tel: +44 1865 272861 (self)
>> 1 South Parks Road, +44 1865 272866 (PA)
>> Oxford OX1 3TG, UK Fax: +44 1865 272595
>>
>
>
>
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 13 Jun 2007 - 15:28:38 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 13 Jun 2007 - 16:31:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.