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

2007-06-13 Thread Prof Brian Ripley
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 <[EMAIL PROTECTED]>:
>> 
>> ?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]]
>> >
>> > __
>> > [email protected] 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,  [EMAIL PROTECTED]
>> 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, UKFax:  +44 1865 272595
>> 
>
>
>
>

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
[email protected] 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.


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

2007-06-13 Thread BaKaLeGuM
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)
2007/6/13, Prof Brian Ripley <[EMAIL PROTECTED]>:
>
> ?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]]
> >
> > __
> > [email protected] 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,  [EMAIL PROTECTED]
> 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, UKFax:  +44 1865 272595
>



-- 
_
baka
[EMAIL PROTECTED]
photo du moment:
http://linuxfr.org/images/dessins/concours_antidrm/protection_des_livres/protection_des_livres_small.png
---

[[alternative HTML version deleted]]

__
[email protected] 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.


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

2007-06-13 Thread Prof Brian Ripley
?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]]
>
> __
> [email protected] 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,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
[email protected] 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.