bnclassify icon indicating copy to clipboard operation
bnclassify copied to clipboard

CRAN warning: checking sizes of PDF files under 'inst/doc' ... WARNING

Open bmihaljevic opened this issue 7 years ago • 2 comments

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:

bmihaljevic avatar May 05 '18 18:05 bmihaljevic

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.

ms609 avatar Dec 10 '18 13:12 ms609

Thanks! I will have a look at this once I get to a bnclassify update.

bmihaljevic avatar Dec 14 '18 15:12 bmihaljevic