The R Project SVN R

Rev

Rev 68414 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
49405 ripley 1
% File src/library/tools/man/startDynamicHelp.Rd
68948 ripley 2
% Part of the R package, https://www.R-project.org
67570 ripley 3
% Copyright 2009-2015 R Core Team
49405 ripley 4
% Distributed under GPL 2 or later
5
 
6
\name{startDynamicHelp}
56186 murdoch 7
\alias{startDynamicHelp}
50151 murdoch 8
\alias{help.ports}
66794 ripley 9
\alias{R_DISABLE_HTTPD}
10
 
49507 ripley 11
\title{Start the Dynamic HTML Help System}
49405 ripley 12
\description{
49434 ripley 13
  This function starts the internal help server, so that HTML help pages
14
  are rendered when requested.
49405 ripley 15
}
16
\usage{
61160 ripley 17
startDynamicHelp(start = TRUE)
49405 ripley 18
}
49410 murdoch 19
\arguments{
49434 ripley 20
  \item{start}{logical: whether to start or shut down the dynamic help
67562 hornik 21
    system.  If \code{NA}, the server is started if not already running.}
49412 ripley 22
}
49405 ripley 23
\details{
50256 ripley 24
  This function starts the internal HTTP server, which runs on the
50381 murdoch 25
  loopback interface (\code{127.0.0.1}).  If \code{options("help.ports")}
68414 murdoch 26
  is set to a vector of non-zero integer values, \code{startDynamicHelp} will try
50256 ripley 27
  those ports in order; otherwise, it tries up to 10 random ports to
28
  find one not in use.  It can be disabled by setting the environment
68414 murdoch 29
  variable \env{R_DISABLE_HTTPD} to a non-empty value or \code{options("help.ports")}
30
  to \code{0}.
61433 ripley 31
 
50151 murdoch 32
  \code{startDynamicHelp} is called by functions that need to use the
33
  server, so would rarely be called directly by a user.
49410 murdoch 34
 
61160 ripley 35
  Note that \code{options(help_type = "html")} must be set to actually
36
  make use of HTML help, although it might be the default for an \R
37
  installation.
49507 ripley 38
 
39
  If the server cannot be started or is disabled,
40
  \code{\link{help.start}} will be unavailable and requests for HTML
41
  help will give text help (with a warning).
50256 ripley 42
 
43
  The browser in use does need to be able to connect to the loopback
44
  interface: occasionally it is set to use a proxy for HTTP on all
45
  interfaces, which will not work -- the solution is to add an exception
46
  for \code{127.0.0.1}.
49405 ripley 47
}
48
\value{
49434 ripley 49
  The chosen port number is returned invisibly (which will be \code{0}
50
  if the server has been stopped).
49405 ripley 51
}
52
\seealso{
49507 ripley 53
  \code{\link{help.start}} and \code{\link{help}(help_type = "html")}
54
  will attempt to start the HTTP server if required
61433 ripley 55
 
49434 ripley 56
  \code{\link{Rd2HTML}} is used to render the package help pages.
49405 ripley 57
}
58
\keyword{ documentation }