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]])
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.