From 2e8b8468d2bae1cb12baf11e5a51bfc3fc74b1c4 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Fri, 29 May 2020 22:04:09 -0500 Subject: [PATCH] by default, do not check consistency between vignette title and index entry when running R CMD check (because this causes trouble in revdep checks) --- R/html_vignette.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/html_vignette.R b/R/html_vignette.R index 9e14d04750..b68d741dcc 100644 --- a/R/html_vignette.R +++ b/R/html_vignette.R @@ -77,7 +77,8 @@ html_vignette <- function(fig_width = 3, } vignette_pre_processor <- function(input_file, metadata = yaml_front_matter(input_file)) { - if (!getOption(o <- 'rmarkdown.html_vignette.check_title', TRUE)) return() + if (!getOption(o <- 'rmarkdown.html_vignette.check_title', !knitr:::is_R_CMD_check())) + return() title1 <- metadata[['title']] title2 <- tools::vignetteInfo(input_file)[['title']] if (!identical(title1, title2)) warning(