On 16 December 2022 at 20:30, EcoC2S - Irucka Embry wrote: | While running R CMD check on my iemisc package, I receive the following | warning: | | * checking sizes of PDF files under ‘inst/doc’ ... WARNING | ‘gs+qpdf’ made some significant size reductions: | compacted ‘Comparing_Manningtrap.pdf’ from 766Kb to 450Kb | consider running tools::compactPDF(gs_quality = "ebook") on these | files | | Is there a method to have the reduction of the PDF vignettes happen | during the R CMD check process?
You can use '--compact-vignettes=both' when invoking R CMD build. I happen to use the example script 'build.r' from the `littler` package I wrote which does that for me (by calling 'tools:::.build_packages()' with that argument). Hth, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel