Skip to content

Render the README and vignette figures at a lighter resolution#105

Merged
kassambara merged 1 commit into
masterfrom
docs/shrink-figures
Jul 11, 2026
Merged

Render the README and vignette figures at a lighter resolution#105
kassambara merged 1 commit into
masterfrom
docs/shrink-figures

Conversation

@kassambara

Copy link
Copy Markdown
Owner

The README rendered at dpi = 200 with fig.retina = 2 (effectively 400 dpi) and the vignettes at dpi = 200, so the generated figures dominated the package: 4.0 Mb of README PNGs in man/figures plus 4.5 Mb of base64-embedded vignette plots, 8.7 Mb installed. On CRAN that draws an installed-size NOTE.

Render the README and both vignettes at dpi = 150 (no retina). The plots stay crisp at their display size (out.width unchanged, so GitHub/pkgdown layout is identical), and the installed size drops from 8.7 Mb to 4.6 Mb, so R CMD check --as-cran now reports checking installed package size ... OK. No R code or plot content changes.

Verified: re-rendered figures viewed for quality; --as-cran 0 errors / 0 warnings / 1 NOTE (dev-version only), installed-size check OK; README.md unchanged (img tags depend on out.width, not dpi).

The README rendered at dpi = 200 with fig.retina = 2 (effectively 400 dpi) and
the vignettes at dpi = 200, so the shipped figures dominated the package: 4.0 Mb
of README PNGs plus 4.5 Mb of base64-embedded vignette plots, 8.7 Mb installed.
Render the README and both vignettes at dpi = 150 (no retina). The plots stay
crisp at their display size, and the installed size drops to 4.6 Mb, clearing
the installed-size check.
@kassambara kassambara merged commit 731717b into master Jul 11, 2026
5 checks passed
@kassambara kassambara deleted the docs/shrink-figures branch July 11, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant