R/vignette.R

num_vignettes <- function(package, version = NULL) {
  "!DEBUG Counting number of vignettes"

  vig <- unclass(utils::browseVignettes(package = package))

  if (length(vig) == 0) {
    0

  } else {
    nrow(vig[[1]])
  }
}
MangoTheCat/packageMetrics2 documentation built on May 21, 2019, 1:41 a.m.