By now It seems nobody have idea.
zz - gzfile(C:/gzpdftest.gz, wb)
pdf(file = zz)
plot(USArrests)
dev.off()
close(zz)
produce a file named 3 without any extension in my working directory.
Also I don't have any news on how to gzip the pdf afterward (without using an
external executable).
I guess I don't understand what your're trying to do. gzip-ing a file
from within R is easy enough:
pdf(file=CompressMe.pdf)
plot(rnorm(100))
dev.off()
system(gzip CompressMe.pdf)
I think you want something more complicated, but I'm not sure what.
-Ista
On Thu, Oct 1, 2009 at 6:41 AM, Daniele
system() invokes the OS command specified by command, in the example you gave
it means that gzip is installed and (assuming Windows OS) it is in your search
path.
I'd like to have a solution that do not use external programs.
Thanks
Daniele
-Original Message-
From: Ista Zahn
The latest version of the Rcompression package (www.omegahat.org/Rcompression)
provides a gzip() function that does this. The example in the help page shows
how.
There is a source version of the package in the Omegahat repository (and on the
package's
Web site), but no binaries at this point.
4 matches
Mail list logo