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, UK                Fax:  +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.

Reply via email to