Re: [R] Getting file name from pdf device?

2009-08-01 Thread Tom Short
On Fri, Jul 31, 2009 at 8:49 AM, Rainer M Krug wrote: > My question: how can I get the filename of the pdf from the device > before it is closed? I've also looked for this and couldn't find a way. I had a similar use, where I wanted to get an R transcript with embedded plots in emacs (see prettyR

Re: [R] Getting file name from pdf device?

2009-07-31 Thread cameron.bracken
Rainer M Krug-6 wrote: > > 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.of

Re: [R] Getting file name from pdf device?

2009-07-31 Thread ONKELINX, Thierry
] Getting file name from pdf device? 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

Re: [R] Getting file name from pdf device?

2009-07-31 Thread Dieter Menne
Rainer M Krug-6 wrote: > > > My question: how can I get the filename of the pdf from the device > before it is closed? > Setting a hook might work (not tried, though) http://finzi.psych.upenn.edu/R/Rhelp08/2009-February/188168.html Dieter -- View this message in context: http://www.nab

[R] Getting file name from pdf device?

2009-07-31 Thread Rainer M Krug
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 ca