The R Project SVN R

Rev

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