Skip to content

[Bioc-devel] Vignette files causing package to exceed 5 MB size limit

4 messages · Richard Heery, Shepherd, Lori, Boyi Guo

#
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
#
The data is now available in the hub
ExperimentHub with 4 records
# snapshotDate(): 2023-10-06
# $dataprovider: University of California San Francisco, Washington Universi...
# $species: Homo sapiens
# $rdataclass: RangedSummarizedExperiment
# additional mcols(): taxonomyid, genome, description,
#   coordinate_1_based, maintainer, rdatadateadded, preparerclass, tags,
#   rdatapath, sourceurl, sourcetype
# retrieve records with, e.g., 'object[["EH8424"]]'

           title
  EH8424 | tcga_wgbs_hg38
  EH8525 | mcrpc_wgbs_hg38
  EH8526 | cpgea_wgbs_hg38
  EH8527 | cao_esophageal_wgbs_hg19
Lori Shepherd - Kern

Bioconductor Core Team

Roswell Park Comprehensive Cancer Center

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263
#
Sorry about that.  I had two emails back to back and responded to the wrong one.

Is there a way to create and save and compress the images?




Lori Shepherd - Kern

Bioconductor Core Team

Roswell Park Comprehensive Cancer Center

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263
3 days later
#
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 <richardheery at gmail.com>
wrote: