[R] Getting file name from pdf device?
Rainer M Krug
r.m.krug at gmail.com
Fri Jul 31 14:49:57 CEST 2009
Hi
IU would like to modify the dev.off function, so that it automatically
compresses the created pdf.
I am thinking of doing the following in the modified dev.off:
1) Get the filename of the pdf device
2) close the device by calling the original dev.off()
3) compress the pdf file with a system call of pdftk.
My question: how can I get the filename of the pdf from the device
before it is closed?
Thanks
Rainer
--
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa
More information about the R-help
mailing list