search for: rs_browseurl

Displaying 1 result from an estimated 1 matches for "rs_browseurl".

2014 Dec 05
2
Use of tools:::httpdPort in a package for CRAN.
...ynamic help.\n") t <- try(startDynamicHelp(), silent = TRUE) if (class(t) == "try-error") stop("Could not start dynamic help.") hport <- tools:::httpdPort } if (!is.na(browser)) { if (tolower(browser) == "rstudio") options(browser = function (x) .Call("rs_browseURL", url)) else options(browser = browser) } url <- paste0("http://127.0.0.1:", hport, "/library/", pkg, "/html/00Index.html") browseURL(url, encodeIfNeeded = encodeIfNeeded) invisible(NULL) } (also at https://github.com/setempler/miscset/blob/master/R/help.ind...