[R-pkg-devel] cannot reduce vignette size in package

Uwe Ligges ||gge@ @end|ng |rom @t@t|@t|k@tu-dortmund@de
Tue Aug 23 15:24:42 CEST 2022


Perhaps your versions of qpdf and/or  gs are outdated or unavailable?

Best,
Uwe Ligges

On 23.08.2022 14:06, Grose, Daniel wrote:
> Hi
> 
> I have just added a vignette to an R package that is already on CRAN. However, when I submit the new version I get
> 
> * checking sizes of PDF files under 'inst/doc' ... WARNING
> 
>    'gs+qpdf' made some significant size reductions:
>       compacted 'article.pdf' from 794Kb to 530Kb
> 
> I have tried building the package using
> 
> R CMD build --compact-vignettes="gs+pdf"
> 
> but the size of the vignette pdf does not get reduced
> 
> I have also tried
> 
> 
> R CMD build --compact-vignettes="pdf"
> 
> R CMD build --compact-vignettes="gs"
> 
> R CMD build --compact-vignettes="both"
> 
> and
> 
> devtools::build(args = c('--compact-vignettes=gs+qpdf'))
> 
> devtools::build(args = c('--compact-vignettes=qpdf'))
> 
> devtools::build(args = c('--compact-vignettes=gs'))
> 
> devtools::build(args = c('--compact-vignettes=both'))
> 
> In all cases these options have no effect on the size of the pdf.
> 
> I do have both gs and qpdf available on the system.
> 
> $ which gs
> 
> /usr/bin/gs
> 
> $ which qpdf
> 
> /usr/bin/qpdf
> 
> Any help / guidance would be much appreciated.
> 
> Many thanks,
> 
> Dan
> 
> 
> 
> 
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list