[R-pkg-devel] compact PDF - vignettes

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed May 24 22:21:08 CEST 2017

On 24.05.2017 18:06, Fernanda De Bastiani wrote:
> Dear Sir/Madam,
> please, I am trying to submit a package to CRAN (with a vignette) but I
> receive the following warning
> * checking sizes of PDF files under 'inst/doc' ... WARNING
>    'gs+qpdf' made some significant size reductions:
>       compacted 'name.pdf' from 1212Kb to 924Kb
>    consider running tools::compactPDF(gs_quality = "ebook") on these files
> I use windows sytem and Rstudio. I have added this command
> --compact-vignettes="gs+qpdf" in the build option, then I received the
> message above. Please what exactly I have to add or change in order to
> improve the gs quality to ebook?

Not sure about RStudio, but in R I'd use
R CMD build --compact-vignettes="both" ...
but note you need to have both gs and qpdf installed and on the PATH.

Uwe Ligges

> Thank you,
> Fernanda
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list