Søren Højsgaard
2018-Jul-08 08:41 UTC
[R] consider running tools::compactPDF(gs_quality = "ebook")
Dear all, I run R CMD build --compact-vignettes="both" gRbase and/or R CMD build --compact-vignettes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb consider running tools::compactPDF(gs_quality = "ebook") on these files According to "writing R extensions" things should be fine (I have gs and qpdf on my system): "The --compact-vignettes option will run tools::compactPDF over the PDF files in inst/doc (and its subdirectories) to losslessly compress them. This is not enabled by default (it can be selected by environment variable _R_BUILD_COMPACT_VIGNETTES_) and needs qpdf (http://qpdf.sourceforge.net/) to be available. " Can anyone please tell me what to do? Best regards S?ren ---> sessionInfo()R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.4 LTS Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] Rcpp_0.12.17 shtools_1.0 markdown_0.8 knitr_1.20 [5] rmarkdown_1.10 devtools_1.13.5 loaded via a namespace (and not attached): [1] lattice_0.20-35 digest_0.6.15 withr_2.1.2 [4] rprojroot_1.3-2 grid_3.4.4 backports_1.1.2 [7] magrittr_1.5 evaluate_0.10.1 stringi_1.2.3 [10] curl_3.2 RcppArmadillo_0.8.500.0 Matrix_1.2-14 [13] tools_3.4.4 RcppEigen_0.3.3.4.0 stringr_1.3.1 [16] compiler_3.4.4 memoise_1.1.0 htmltools_0.3.6
Bert Gunter
2018-Jul-08 14:40 UTC
[R] consider running tools::compactPDF(gs_quality = "ebook")
I believe R-package-devel is the right place to post this, not r-help. See https://www.r-project.org/mail.html for details. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Jul 8, 2018 at 1:41 AM, S?ren H?jsgaard <sorenh at math.aau.dk> wrote:> Dear all, > > I run > > R CMD build --compact-vignettes="both" gRbase > > and/or > > R CMD build --compact-vignettes="gs+qpdf" gRbase > > and in the log from r-devel (on winbuilder) I get > > * checking sizes of PDF files under 'inst/doc' ... WARNING > 'gs+qpdf' made some significant size reductions: > compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb > consider running tools::compactPDF(gs_quality = "ebook") on these files > > According to "writing R extensions" things should be fine (I have gs and > qpdf on my system): > > "The --compact-vignettes option will run tools::compactPDF over the PDF > files in inst/doc (and its subdirectories) to losslessly compress them. > This is not enabled by default (it can be selected by environment variable > _R_BUILD_COMPACT_VIGNETTES_) and needs qpdf (http://qpdf.sourceforge.net/) > to be available. " > > Can anyone please tell me what to do? > > Best regards > S?ren > > --- > > > sessionInfo() > R version 3.4.4 (2018-03-15) > Platform: x86_64-pc-linux-gnu (64-bit) > Running under: Ubuntu 16.04.4 LTS > > Matrix products: default > BLAS: /usr/lib/libblas/libblas.so.3.6.0 > LAPACK: /usr/lib/lapack/liblapack.so.3.6.0 > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 > [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > [7] LC_PAPER=en_US.UTF-8 LC_NAME=C > [9] LC_ADDRESS=C LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] Rcpp_0.12.17 shtools_1.0 markdown_0.8 knitr_1.20 > [5] rmarkdown_1.10 devtools_1.13.5 > > loaded via a namespace (and not attached): > [1] lattice_0.20-35 digest_0.6.15 withr_2.1.2 > > [4] rprojroot_1.3-2 grid_3.4.4 backports_1.1.2 > > [7] magrittr_1.5 evaluate_0.10.1 stringi_1.2.3 > > [10] curl_3.2 RcppArmadillo_0.8.500.0 Matrix_1.2-14 > > [13] tools_3.4.4 RcppEigen_0.3.3.4.0 stringr_1.3.1 > > [16] compiler_3.4.4 memoise_1.1.0 htmltools_0.3.6 > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Søren Højsgaard
2018-Jul-08 15:46 UTC
[Rd] [R] consider running tools::compactPDF(gs_quality = "ebook")
Dear all, I run R CMD build --compact-vignettes="both" gRbase and/or R CMD build --compact-vignettes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb consider running tools::compactPDF(gs_quality = "ebook") on these files According to "writing R extensions" things should be fine (I have gs and qpdf on my system): "The --compact-vignettes option will run tools::compactPDF over the PDF files in inst/doc (and its subdirectories) to losslessly compress them. This is not enabled by default (it can be selected by environment variable _R_BUILD_COMPACT_VIGNETTES_) and needs qpdf (http://qpdf.sourceforge.net/) to be available. " Can anyone please tell me what to do? Best regards S?ren ---> sessionInfo()R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.4 LTS Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3. 6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] Rcpp_0.12.17 shtools_1.0 markdown_0.8 knitr_1.20 [5] rmarkdown_1.10 devtools_1.13.5 loaded via a namespace (and not attached): [1] lattice_0.20-35 digest_0.6.15 withr_2.1.2 [4] rprojroot_1.3-2 grid_3.4.4 backports_1.1.2 [7] magrittr_1.5 evaluate_0.10.1 stringi_1.2.3 [10] curl_3.2 RcppArmadillo_0.8.500.0 Matrix_1.2-14 [13] tools_3.4.4 RcppEigen_0.3.3.4.0 stringr_1.3.1 [16] compiler_3.4.4 memoise_1.1.0 htmltools_0.3.6 [[alternative HTML version deleted]]
Reasonably Related Threads
- consider running tools::compactPDF(gs_quality = "ebook")
- [R] consider running tools::compactPDF(gs_quality = "ebook")
- [R] consider running tools::compactPDF(gs_quality = "ebook")
- Bug in tools::compactPDF() in 2.13-0-alpha
- vignettes: problems with PDF compaction