[R] equivalent of windialog on unix??
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Jun 13 16:48:09 CEST 2007
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 at 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
More information about the R-help
mailing list