wleoncio / smms

R package for fitting semi-markovian multistate models
Other
0 stars 0 forks source link

Compress PDFs #4

Open wleoncio opened 1 month ago

wleoncio commented 1 month ago

devtools::check() gives this warning:

W  checking sizes of PDF files under ‘inst/doc’ (782ms)
     ‘gs+qpdf’ made some significant size reductions:
        compacted ‘example_cav_expo_noCovariates.pdf’ from 353Kb to 99Kb
     consider running tools::compactPDF(gs_quality = "ebook") on these files

Simply running compactPDF() manually on those files doesn't work, since they get overwritten by the built vignettes, so the compating needs to be incorporated into the vignette-building process.

wleoncio commented 1 month ago

Couldn't reproduce anymore (R 4.4.1). Closing as fixed, may reopen if problem reappears.

wleoncio commented 1 month ago

Issue can be reproduced on the devtools builds (Win oldrel, release, devel), but not locally

wleoncio commented 1 month ago

This is the warning:

* checking sizes of PDF files under 'inst/doc' ... WARNING
  'gs+qpdf' made some significant size reductions:
     compacted 'example_cav_expo_noCovariates.pdf' from 351Kb to 100Kb
  consider running tools::compactPDF(gs_quality = "ebook") on these files
  or build the source package with --compact-vignettes=both