[R-pkg-devel] vignettes - size of pdf
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Fri Nov 11 14:06:13 CET 2022
В Fri, 11 Nov 2022 12:54:52 +0000
"Grose, Daniel" <dan.grose using lancaster.ac.uk> пишет:
> * checking sizes of PDF files under 'inst/doc' ... WARNING
> 'gs+qpdf' made some significant size reductions:
> compacted 'cpop.pdf' from 805Kb to 547Kb
> consider running tools::compactPDF(gs_quality = "ebook") on these
> files
>
> I do not understand how I can do this given that the pdf is produced
> when installing the package. Any ideas ?
I think that the PDF file is built during R CMD build, not (only) R CMD
INSTALL. At the very least, the source package currently on CRAN
contains both the *.pdf and the *.ltx files under inst/doc:
https://github.com/cran/cpop/tree/master/inst/doc
Does it help to pass the --compact-vignettes=gs+qpdf argument to R CMD
build? It seems to be off by default.
--
Best regards,
Ivan
More information about the R-package-devel
mailing list