[R-pkg-devel] checking sizes of PDF files under‘inst/doc’ ... WARNING

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Sat Dec 17 06:34:26 CET 2022


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 | edd using debian.org



More information about the R-package-devel mailing list