On my machine when running R CMD check I use the option --compact-vignettes=qs+qpdf
and get no warnings with devtools::check(args = c('--as-cran'), build_args = c('--compact-vignettes=gs+qpdf'))
.
I haven't been able to get clean builds with r-lib/actions/check-r-package@v2. My YAML ends with
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--compact-vignettes=both")'
Producing a warning on check on GH:
❯ checking sizes of PDF files under ‘inst/doc’ ... WARNING
‘gs+qpdf’ made some significant size reductions:
compacted ‘Using_MeanRarity.pdf’ from 795Kb to 370Kb
consider running tools::compactPDF(gs_quality = "ebook") on these files
How can I clear this warning (and build a CRAN-compliant package with vignette...)?
Thanks!