[R-es] Reducción tamaño de gráficos en PDF

Oscar Perpiñan Lamigueiro oscar.perpinan en upm.es
Mie Jul 6 12:58:41 CEST 2011


Hola,

Ayer, releyendo por enésima vez el "Writing R extensions" encontré este
párrafo (me parece que es nuevo, pero no me fío de mi mala memoria) que
puede ser interesante de forma colateral en esto de reducir los PDFs:

"Since qpdf is fairly readily available (e.g. it has binaries for
Windows and packages in Debian/Ubuntu), there is an option
--compact-vignettes to R CMD build to run qpdf over PDF files under
inst/doc and replace them if at least 10Kb and 10% is saved. The full
path to the qpdf command can be supplied as environment variable R_QPDF
(and is on the CRAN binary of R for Mac OS X). This is done via the
function tools::compactPDF which has other options including running
Ghostscript."

Lo encontraréis en el punto 5 de este enlace:
http://stat.ethz.ch/R-manual/R-devel/doc/manual/R-exts.html#Submitting-a-package-to-CRAN

Saludos.

Oscar.


-------------------
Oscar Perpiñán Lamigueiro
Dpto. Ingeniería Eléctrica
EUITI-UPM

http://procomun.wordpress.com



Más información sobre la lista de distribución R-help-es