[R-pkg-devel] consider running tools::compactPDF(gs_quality = "ebook")

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sun Oct 6 13:57:55 CEST 2019


On 06/10/2019 3:07 a.m., Juhee Lee wrote:
> I can see this result :
> 
> * checking for file 'D:\Works\LAR\package\LARisk/DESCRIPTION' ... OK
> * preparing 'LARisk':
> * checking DESCRIPTION meta-information ... OK
> * cleaning src
> * installing the package to build vignettes
> * creating vignettes ... OK
> * compacting vignettes and other PDF files
> * cleaning src
> * checking for LF line-endings in source and make files and shell scripts
> * checking for empty or unneeded directories
> * building 'LARisk_0.1.1.tar.gz'
> 
> 
> Is this the thing you tell me?

Yes, that looks fine.  If you are submitting the LARisk_0.1.1.tar.gz 
file created by that sequence then I don't see why you would have gotten 
the warning you did.

Duncan Murdoch

> 
> Juhee Lee
> 
> 2019년 10월 3일 (목) 오후 11:44, Duncan Murdoch 
> <murdoch.duncan using gmail.com <mailto:murdoch.duncan using gmail.com>>님이 작성:
> 
>     On 03/10/2019 9:00 a.m., Juhee Lee wrote:
>      > Maybe "vignette.pdf" is rebuilt by R CMD build.
> 
>     Can't you tell by looking at what is printed?  You should see
> 
>     * installing the package to build vignettes
>     * creating vignettes ... OK
> 
>     (You can save this output to a file by adding the option --log to the R
>     CMD build call).
> 
>     Duncan Murdoch
> 
>      >
>      > Juhee Lee
>      >
>      > 2019년 10월 2일 (수) 오후 10:09, Duncan Murdoch
>      > <murdoch.duncan using gmail.com <mailto:murdoch.duncan using gmail.com>
>     <mailto:murdoch.duncan using gmail.com <mailto:murdoch.duncan using gmail.com>>>
>     님이 작성:
>      >
>      >     On 02/10/2019 8:34 a.m., Juhee Lee wrote:
>      >      > Dear all.
>      >      >
>      >      > I checked my package on win-builder, and got this message:
>      >      >
>      >      > * checking sizes of PDF files under 'inst/doc' ... WARNING
>      >      >    'gs+qpdf' made some significant size reductions:
>      >      >       compacted 'vignette.pdf' from 541Kb to 234Kb
>      >      >    consider running tools::compactPDF(gs_quality = "ebook") on
>      >     these files
>      >      >
>      >      >
>      >      > But, I run R CMD build --compact-vignettes="gs+qpdf", and
>      >      >
>      >      > I installed gs and qpdf on my system.
>      >      >
>      >      > How can I solve this problem?
>      >
>      >     Is vignette.pdf in inst/doc before calling R CMD build?  Is
>     it rebuilt
>      >     by R CMD build?
>      >
>      >     Duncan Murdoch
>      >
>      >      >
>      >      >
>      >      > Best regards
>      >      >
>      >      >
>      >      > Juhee Lee.
>      >      >
>      >      > ---------------------------------------
>      >      >
>      >      >> Sys.which(Sys.getenv("R_GSCMD"))
>      >      > C:\\Program Files\\gs\\gs9.27\\bin\\gswin64c.exe
>      >      >     "C:\\PROGRA~1\\gs\\gs9.27\\bin\\gswin64c.exe"
>      >      >> Sys.which(Sys.getenv("R_QPDF"))
>      >      > C:\\Program Files\\qpdf-9.0.1\\bin\\qpdf.exe
>      >      >     "C:\\PROGRA~1\\QPDF-9~1.1\\bin\\qpdf.exe"
>      >      >> sessionInfo()
>      >      > R version 3.6.1 (2019-07-05)
>      >      > Platform: x86_64-w64-mingw32/x64 (64-bit)
>      >      > Running under: Windows 10 x64 (build 18362)
>      >      >
>      >      > Matrix products: default
>      >      >
>      >      > locale:
>      >      > [1] LC_COLLATE=Korean_Korea.949  LC_CTYPE=Korean_Korea.949
>      >      > LC_MONETARY=Korean_Korea.949
>      >      > [4] LC_NUMERIC=C                 LC_TIME=Korean_Korea.949
>      >      >
>      >      > attached base packages:
>      >      > [1] stats     graphics  grDevices utils     datasets 
>     methods   base
>      >      >
>      >      > other attached packages:
>      >      > [1] LARisk_0.1.1
>      >      >
>      >      > loaded via a namespace (and not attached):
>      >      > [1] compiler_3.6.1 tools_3.6.1    Rcpp_1.0.2
>      >      >
>      >      >       [[alternative HTML version deleted]]
>      >      >
>      >      > ______________________________________________
>      >      > R-package-devel using r-project.org
>     <mailto:R-package-devel using r-project.org>
>      >     <mailto:R-package-devel using r-project.org
>     <mailto:R-package-devel using r-project.org>> mailing list
>      >      > https://stat.ethz.ch/mailman/listinfo/r-package-devel
>      >      >
>      >
>



More information about the R-package-devel mailing list