Run examples in a package and insert output into the examples code;
knit_rd_all()
is a wrapper around knit_rd()
to build static
HTML help pages for all packages under the html
directory of them.
knit_rd(pkg, links = tools::findHTMLlinks(), frame = TRUE)knit_rd_all()
All HTML pages corresponding to topics in the package are written
under the current working directory. An index.html
is also written
as a table of content.
Package name.
A character vector of links to be passed to
tools::Rd2HTML()
.
Boolean: whether to put a navigation frame on the left of the index page.
library(knitr)
if (FALSE) {
knit_rd("maps")
knit_rd("rpart")
setwd(system.file("html", package = "ggplot2"))
knit_rd("ggplot2") # time-consuming!
knit_rd_all() # this may take really long time if you have many packages installed
}
Run the code above in your browser using DataLab