Re: [R] tcltk again (solved)

From: Richard Müller <r.mueller_at_oeko-sorpe.de>
Date: Mon, 31 Dec 2007 09:06:19 +0100

> 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/",defaultextension=".pdf",
> initialfile="Haupt_Chl_Phaeo.pdf")
> dev.copy(pdf, tclvalue(Datei))
> else graphics.off()
> graphics.off()
>
> In the moment I'm saving I dont have the pdf generated yet.

That's wrong. It works perfectly. Thanks to all contributors. Happy New Year!  Greetings
 Richard

-- 
Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn
www.oeko-sorpe.de

______________________________________________
R-help_at_r-project.org 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 Mon 31 Dec 2007 - 08:12:49 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 Mon 31 Dec 2007 - 08:30:21 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.