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
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
On Fri, Oct 2, 2009 at 9:02 AM, Gábor Csárdi csa...@rmki.kfki.hu 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
).
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
daniele.ambe...@ors.itmailto:daniele.ambe...@ors.it
I
(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: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 easy enough:
pdf
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
unknown sender
I guess I don't understand what your're trying to do. gzip
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 (test.pdf)
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
2009/9/30 Daniele Amberti daniele.ambe...@ors.it
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
10 matches
Mail list logo