Skip to content
Prev 132911 / 398502 Next

tcltk again

Thank you, Charilaos, for your posting.
I wrote the following:
--------------------------------------------------
require(tcltk)
#Tcl/Tk - Texteingabe
Datei <- tkgetSaveFile(initialdir="temp/",defaultextension=".pdf",
initialfile="Haupt_Chl_ Phaeo.pdf")
fileName <- tclvalue(Datei)
pdf(fileName) # graphical device driver with filename
...(code for the graphics)...
---------------------------------------------------
As expected, I get an empty pdf-file. Specifying the pdf-device-driver results 
in automatically saving the generated pdf. The tkGetSave-function isn't 
helpful in this case. I must have the possibility to input a filename and 
then give this filename as an argument to the device-driver.
Richard