On Tue, 28 May 2019 at 16:29, Juhee Lee <ljh988...@gmail.com> wrote: > > Hello. I'm checking my package for CRAN. > > I check my package on win-builder, then I got these NOTE and WARNING. > > * checking sizes of PDF files under 'inst/doc' ... WARNING > 'gs+qpdf' made some significant size reductions: > compacted 'vignette.ltx.pdf' from 496Kb to 246Kb > consider running tools::compactPDF(gs_quality = "ebook") on these files > * checking installed files from 'inst/doc' ... NOTE > The following files should probably not be installed: > 'vignette.ltx.tex' > > Consider the use of a .Rinstignore file: see 'Writing R Extensions', > or move the vignette sources from 'inst/doc' to 'vignettes'. > > > How can I solve these NOTE and WARNING?
Well, doing exactly what the messages suggest, especially in the second case. In the first case, the easiest way to fix it is to add the following flag to the build command: R CMD build --compact-vignettes="both" yourpackage If you use devtools, there's a parameter to add this extra argument. Iñaki ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel