#' @name help.index
#' @keywords help index browser
#' @author Sven E. Templer
#' @title Open The Package Help Index Page
#' @description 
#' Given a package name or string, start the package help index page
#' in a browser.
#' @param pkg A character string or expression with the name of a package.
#' @param browser The browser to display. \code{text} and \code{pdf} don't
#' use a browser, but builtin text/pdf (help_type). Otherwise a character
#' string for the browser program binary to call or function.

#' @export help.index
help.index <- function (pkg, browser = NULL) {
  pkg <- as.character(substitute(pkg))
  ht <- getOption("help_type")
  if (!is.null(browser)) {
    if (is.function(browser)) {
      ht <- "html"
    } else if (is.character(browser)) {
      ht <- switch(browser, text=, pdf=browser, "html")
      browser <- switch(
        html = getOption("browser"), 
        rstudio = function (x) .Call("rs_browseURL", url), 
  help(package = (pkg), help_type = ht)

Try the miscset package in your browser

Any scripts or data that you put into this service are public.

miscset documentation built on May 2, 2019, 4:01 a.m.