Can you try to add ` fig.retina = NULL` in your `knitr::opts_chunk$set()`
setting?

That helped me to reduce the size of images in image-heavy vignettes.

Source:
http://zevross.com/blog/2017/06/19/tips-and-tricks-for-working-with-images-and-figures-in-r-markdown-documents/#the-fig.retina-argument-is-a-resolution-multiplier


Best,
Boyi

On Fri, Oct 6, 2023 at 12:28 PM Richard Heery <richardhe...@gmail.com>
wrote:

> Hi all,
>
> My package tarball is only 4.4 MB when I build it without building the
> vignettes. However, it increases to 7 MB when I build the vignettes. My
> vignette is a html_document that creates several images and is 3.8 MB
> uncompressed so quite large. Since my package is under the 5 MB limit
> without building vignettes, would that be considered small enough to pass
> or must the size of the vignettes be counted as part of the package size?
>
> Cheers,
>
> Richard
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to