Skip to content

Commit 2e8b846

Browse files
committed
by default, do not check consistency between vignette title and index entry when running R CMD check (because this causes trouble in revdep checks)
1 parent c860cc2 commit 2e8b846

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/html_vignette.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ html_vignette <- function(fig_width = 3,
7777
}
7878

7979
vignette_pre_processor <- function(input_file, metadata = yaml_front_matter(input_file)) {
80-
if (!getOption(o <- 'rmarkdown.html_vignette.check_title', TRUE)) return()
80+
if (!getOption(o <- 'rmarkdown.html_vignette.check_title', !knitr:::is_R_CMD_check()))
81+
return()
8182
title1 <- metadata[['title']]
8283
title2 <- tools::vignetteInfo(input_file)[['title']]
8384
if (!identical(title1, title2)) warning(

0 commit comments

Comments
 (0)