Re: [R] tcltk again (solved)

2007-12-31 Thread Richard Müller
> I wrote the following code: > X11() > # some code to generate a plot on the screen omitted > > res <-tkmessageBox(title="Finish?", > message="save as PDF?", > icon="question", type="okcancel") > > if (tclvalue(res) == "ok") > Datei <- tkgetSaveFile(initialdir="temp/",defaultex

Re: [R] tcltk again

2007-12-30 Thread Charilaos Skiadas
On Dec 30, 2007, at 11:55 AM, Richard Müller wrote: > Oops, I just sent the wrong mail. It should be the following one. > Please > delete my mail from 30.Dez. 17:51 > > > Sorry, but I don't really understand the recommended method using > the tk-Box > "tkGetSaveFile". > I wrote the following c

Re: [R] tcltk again

2007-12-30 Thread Richard Müller
Oops, I just sent the wrong mail. It should be the following one. Please delete my mail from 30.Dez. 17:51 Sorry, but I don't really understand the recommended method using the tk-Box "tkGetSaveFile". I wrote the following code: X11() # some code to generate a plot on the screen omitted res <-

Re: [R] tcltk again

2007-12-30 Thread Richard Müller
> > ... > > I experimented with tkgetSaveFile(). But in the moment the user > > gives the > > filename the file is not yet generated! And I can't generate it in > > advance, > > because the filename is not yet specified. > > I don't see why this is a problem. In tkgetSaveFile(), the user can > just

Re: [R] tcltk again

2007-12-29 Thread Peter Dalgaard
Richard Müller wrote: > Hello, > the admonition of Prof. Ripley to search the documentation to solve my > problem > helped, today I read a lot more on Tcl/Tk than before ;-) > But now I'm stuck again. With the help of my script some functions are > plotted > on the display, then I ask if the us

[R] tcltk again

2007-12-29 Thread Richard Müller
Hello, the admonition of Prof. Ripley to search the documentation to solve my problem helped, today I read a lot more on Tcl/Tk than before ;-) But now I'm stuck again. With the help of my script some functions are plotted on the display, then I ask if the user wants to save it as pdf. In windows