Displaying 1 result from an estimated 1 matches for "tt4697661".
2014 Dec 05
2
Use of tools:::httpdPort in a package for CRAN.
Hello,
I wrote a function to show the help/index page of a package in a
browser (and want to include this in an update for a CRAN package). I
asked in R-help how to obtain the 00Index.html file, Duncan Murdoch
suggested to inspect (see
http://r.789695.n4.nabble.com/Obtain-00Index-html-tt4697661.html)
tools:::httpd (thank you therefore!). So I came up with:
help.index <- function (pkg, browser = NA, encodeIfNeeded = FALSE) {
pkg <- as.character(substitute(pkg))
hport <- tools:::httpdPort
if (!pkg %in% rownames(installed.packages()))
stop(paste("Package", pkg, "n...