[R-pkg-devel] [External] compact vignettes
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Wed Jul 23 22:09:26 CEST 2025
I still don't have the incantation correct
When I use
echo $R_QPDF $R_GSCMD $GS_QUALITY
R CMD build --compact-vignettes=both microplot
I get 558910 bytes
When I use
R_QPDF=/Library/Frameworks/R.framework/Resources/bin/qpdf
R_GSCMD=/usr/local/bin/Cellar/ghostscript/10.03.0/bin/gs
GS_QUALITY=ebook
echo $R_QPDF $R_GSCMD $GS_QUALITY
R CMD build --compact-vignettes=both microplot
I get 558950 bytes
The bytecount for the package went up.
Transcript:
rmh using MacBook-Air-9 HH-R.package % echo $R_QPDF $R_GSCMD $GS_QUALITY
echo $R_QPDF $R_GSCMD $GS_QUALITY
rmh using MacBook-Air-9 HH-R.package % R CMD build --compact-vignettes=both microplot
R CMD build --compact-vignettes=both microplot
* checking for file ‘microplot/DESCRIPTION’ ... OK
* preparing ‘microplot’:
* checking DESCRIPTION meta-information ... OK
* installing the package to process help pages
* saving partial Rd database
* creating vignettes ... OK
* compacting vignettes and other PDF files
* excluding invalid files
Subdirectory 'R' contains invalid file names:
‘MSWord_TablePlusGraphicColumn.Rold’ ‘NEWS-complete.Rold’
‘dvi.latexConsole.Rold’ ‘latexCheckOptions.Rold’
‘microplot.ggplot.Rpdf’ ‘microplot.ggplot.Rreusegeom’
‘microplot_yfactor.ggplot.Rold’ ‘msWord.microplotMatrix_1.0.39.Rold’
Subdirectory 'man' contains invalid file names:
‘MSWord.Rdold’ ‘MSWord_TablePlusGraphicColumn.Rdold’
‘microplot.AEdotplot.Rdold’ ‘pdfMicroplot.Rdold’ ‘plot_grid.Rdold’
Subdirectory 'demo' contains invalid file names:
‘LegendrePolynomials-msWord.rold’ ‘LegendrePolynomials-msWord.rold29’
‘boxplot-ggplot-MSWord.rold’ ‘boxplot-ggplot.rold’
‘boxplot-ggplot2.rold’ ‘bwplot-lattice-MSWord.rold’
‘bwplot-lattice.r31’ ‘bwplot-lattice.rold’ ‘iris.rold’
‘latex-ggplot.rreusegeom’
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘microplot_1.0-47.tar.gz’
rmh using MacBook-Air-9 HH-R.package % ls -alF microplot_1.0-47.tar.gz
ls -alF microplot_1.0-47.tar.gz
-rw-r--r-- 1 rmh staff 558910 Jul 23 16:03 microplot_1.0-47.tar.gz
rmh using MacBook-Air-9 HH-R.package %R_QPDF=/Library/Frameworks/R.framework/Resources/bin/qpdf
R_GSCMD=/usr/local/bin/Cellar/ghostscript/10.03.0/bin/gs
GS_QUALITY=ebook
echo $R_QPDF $R_GSCMD $GS_QUALITY
R CMD build --compact-vignettes=both microplot
R_QPDF=/Library/Frameworks/R.framework/Resources/bin/qpdf
rmh using MacBook-Air-9 HH-R.package % R_GSCMD=/usr/local/bin/Cellar/ghostscript/10.03.0/bin/gs
rmh using MacBook-Air-9 HH-R.package % GS_QUALITY=ebook
rmh using MacBook-Air-9 HH-R.package % echo $R_QPDF $R_GSCMD $GS_QUALITY
/Library/Frameworks/R.framework/Resources/bin/qpdf /usr/local/bin/Cellar/ghostscript/10.03.0/bin/gs ebook
rmh using MacBook-Air-9 HH-R.package % R CMD build --compact-vignettes=both microplot
* checking for file ‘microplot/DESCRIPTION’ ... OK
* preparing ‘microplot’:
* checking DESCRIPTION meta-information ... OK
* installing the package to process help pages
* saving partial Rd database
* creating vignettes ... OK
* compacting vignettes and other PDF files
* excluding invalid files
Subdirectory 'R' contains invalid file names:
‘MSWord_TablePlusGraphicColumn.Rold’ ‘NEWS-complete.Rold’
‘dvi.latexConsole.Rold’ ‘latexCheckOptions.Rold’
‘microplot.ggplot.Rpdf’ ‘microplot.ggplot.Rreusegeom’
‘microplot_yfactor.ggplot.Rold’ ‘msWord.microplotMatrix_1.0.39.Rold’
Subdirectory 'man' contains invalid file names:
‘MSWord.Rdold’ ‘MSWord_TablePlusGraphicColumn.Rdold’
‘microplot.AEdotplot.Rdold’ ‘pdfMicroplot.Rdold’ ‘plot_grid.Rdold’
Subdirectory 'demo' contains invalid file names:
‘LegendrePolynomials-msWord.rold’ ‘LegendrePolynomials-msWord.rold29’
‘boxplot-ggplot-MSWord.rold’ ‘boxplot-ggplot.rold’
‘boxplot-ggplot2.rold’ ‘bwplot-lattice-MSWord.rold’
‘bwplot-lattice.r31’ ‘bwplot-lattice.rold’ ‘iris.rold’
‘latex-ggplot.rreusegeom’
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘microplot_1.0-47.tar.gz’
rmh using MacBook-Air-9 HH-R.package % ls -alF microplot_1.0-47.tar.gz
ls -alF microplot_1.0-47.tar.gz
-rw-r--r-- 1 rmh staff 558950 Jul 23 16:04 microplot_1.0-47.tar.gz
rmh using MacBook-Air-9 HH-R.package %
> On Jul 22, 2025, at 20:31, Dirk Eddelbuettel <edd using debian.org> wrote:
>
>
> On 23 July 2025 at 00:16, Richard M. Heiberger wrote:
> | I need some help on the compacting of pdf files in the inst/doc/ directory.
> | When I use the --compact-vignettes option, as in
> | R CMD build --compact-vignettes microplot
> | the relevant pdf filesize drops 76 bytes.
> |
> | The CRAN pretest makes it drop in size by 270 kilobytes
> |
> | What incantation am I missing?
>
> I use `--compact-vignettes=both` (encoded in wrapper script `build.r` which
> is part of my `littler` package).
>
> One of those things that maybe should be a default but aren't...
>
> Dirk
>
> --
> dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-package-devel
mailing list