Re: [R] Compress (gzip) a pdf device

2009-10-02 Thread Rainer M Krug
On Fri, Oct 2, 2009 at 9:02 AM, Gábor Csárdi wrote: > Rainer, > > if you are willing to patch the R source, then a solution might be the > R connection patch, see > http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api > It is a bit outdated, but with a little work I could use

Re: [R] Compress (gzip) a pdf device

2009-10-02 Thread Gábor Csárdi
Rainer, if you are willing to patch the R source, then a solution might be the R connection patch, see http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api It is a bit outdated, but with a little work I could use it for R 2.9.2 and works fine. Best, Gabor On Fri, Oct 2, 2009

Re: [R] Compress (gzip) a pdf device

2009-10-01 Thread Rainer M Krug
On Thu, Oct 1, 2009 at 7:26 PM, Martin Renner < martin.ren...@stonebow.otago.ac.nz> wrote: > try pdftk. Not quite on the fly but should do the trick. (I saw this on > this list a little while ago) > pdftk compresses the pdf internally - it is still a pdf, can be opened as a pdf, and is not an ext

Re: [R] Compress (gzip) a pdf device

2009-10-01 Thread Martin Renner
try pdftk. Not quite on the fly but should do the trick. (I saw this on this list a little while ago) pdfComp <- function (pdfname){ if (0){ x <- tempfile() system (paste ("mv", pdfname, x)) system (paste ("pdftk", x, "output", pdfname, "compress")) unlink (x) } } pdf ("te

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Duncan Temple Lang
ms. > > Thanks > Daniele > > -Original Message- > From: Ista Zahn [mailto:istaz...@gmail.com] > Sent: 01 October 2009 17:11 > To: Daniele Amberti > Cc: r-help@r-project.org; Rainer M Krug > Subject: Re: [R] Compress (gzip) a pdf device - [ ] Message is from an > u

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Daniele Amberti
Zahn [mailto:istaz...@gmail.com] Sent: 01 October 2009 17:11 To: Daniele Amberti Cc: r-help@r-project.org; Rainer M Krug Subject: Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender I guess I don't understand what your're trying to do. gzip-ing a file from within R is ea

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Ista Zahn
ension in my working directory. > > Also I don't have any news on how to gzip the pdf afterward (without using an > external executable). > > Daniele > > > From: Rainer M Krug [mailto:r.m.k...@gmail.com] > Sent: 30 September 2009 10:26 > To: Daniele Amberti >

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Daniele Amberti
(without using an external executable). Daniele From: Rainer M Krug [mailto:r.m.k...@gmail.com] Sent: 30 September 2009 10:26 To: Daniele Amberti Cc: r-help@r-project.org Subject: Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender 2009/9/30 Daniele Amberti mailto:dan

Re: [R] Compress (gzip) a pdf device

2009-09-30 Thread Rainer M Krug
2009/9/30 Daniele Amberti > I have not found an easy way to compress a file on filesystem. > Especially I'd like to compress a pdf from pdf() function/device. Is it > possible to compress It on the flight? > I'd like to do something like: > pdf(gzipconnection()) > dev.off() > > I guess this boils

[R] Compress (gzip) a pdf device

2009-09-30 Thread Daniele Amberti
I have not found an easy way to compress a file on filesystem. Especially I'd like to compress a pdf from pdf() function/device. Is it possible to compress It on the flight? I'd like to do something like: pdf(gzipconnection()) dev.off() If It is not possible, how can I create a gzip with the pdf?