From 7df4d87ee2c22e82706b7181e7ce1f793143e572 Mon Sep 17 00:00:00 2001 From: hornik Date: Wed, 4 Oct 2023 19:03:18 +0000 Subject: [PATCH] Improve reporting PDF size reductions. By Ivan Krylov. git-svn-id: https://svn.r-project.org/R/trunk@85266 00db46b3-68df-0310-9c12-caf00c1e9a41 --- src/library/tools/R/check.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/library/tools/R/check.R b/src/library/tools/R/check.R index 2246c50a656..6e0ca0a5bfa 100644 --- a/src/library/tools/R/check.R +++ b/src/library/tools/R/check.R @@ -3079,7 +3079,8 @@ add_dummies <- function(dir, Log) " 'qpdf' made some significant size reductions:\n", paste(" ", res, collapse = "\n"), "\n", - " consider running tools::compactPDF() on these files\n") + " consider running tools::compactPDF() on these files,\n", + " or build the source package with --compact-vignettes\n") } if (R_check_doc_sizes2) { gs_cmd <- find_gs_cmd() @@ -3093,7 +3094,8 @@ add_dummies <- function(dir, Log) " 'gs+qpdf' made some significant size reductions:\n", paste(" ", res, collapse = "\n"), "\n", - ' consider running tools::compactPDF(gs_quality = "ebook") on these files\n') + ' consider running tools::compactPDF(gs_quality = "ebook") on these files,\n', + ' or build the source package with --compact-vignettes=both\n') } } else { if (!any) noteLog(Log)