Skip to content

Commit

Permalink
by default, do not check consistency between vignette title and index…
Browse files Browse the repository at this point in the history
… entry when running R CMD check (because this causes trouble in revdep checks)
  • Loading branch information
yihui committed May 30, 2020
1 parent 89a9aec commit 9ce8b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/html_vignette.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9ce8b28

Please sign in to comment.