CRAN warning: checking sizes of PDF files under 'inst/doc' ... WARNING
On Travis and win-builder there was one WARNING:
- checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'overview.pdf' from 427Kb to 148Kb consider running tools::compactPDF(gs_quality = "ebook") on these files
Since the vignette is generated automatically from vignettes/overview.rmd and I don't know of anything I can do to reduce the size of the resulting pdf. I avoided the warning locally by using
devtools::check(args = '--as-cran', cran = TRUE, check_version = TRUE, build_args = c('--resave-data','--compact-vignettes="gs+qpdf"')).
See also:
- http://r.789695.n4.nabble.com/vignettes-problems-with-PDF-compaction-td4664909.html
- A package on CRAN with this warning: https://cran.r-project.org/web/checks/check_results_GenABEL.html
- https://stackoverflow.com/questions/31510406/enabling-vignette-compression-for-r-cmd-build-in-rstudio
- https://github.com/achubaty/grainscape/issues/34
Have you tried adding the following line to your .travis.yml file?
r_build_args: '--compact-vignettes="gs+qpdf"'
(see: https://github.com/achubaty/grainscape/commit/582046b0deb890749bf4c17da9d6f3a3d93f5971)
I've found that locally, RStudio dislikes --compact-vignettes="gs+qpdf", but works with --compact-vignettes=both, so it may be worth trying both on Travis if one doesn't work.
Thanks! I will have a look at this once I get to a bnclassify update.