[R] Re: Compiled HTML and aliased topics

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sun Aug 20 19:18:26 CEST 2000


On Sun, 20 Aug 2000, Uwe Ligges wrote:

> Uwe Ligges wrote:
> > 
> > When I try e.g.
> > 
> >  help(as.symbol, chmhelp = TRUE)
> > 
> > I get an error message in the help viewer (translated to english: "The
> > page cannot be shown"). This happens for all aliased topics (i.e.
> > aliased in the *.Rd file).
> > So I have to know the "unaliased" name (here: "name") to get chtml help.
> > 
> > Is it possible to get the behavior of "plain text help" (no problems
> > with aliased topics) also for chtml help?

Yes, easily. Add the line

                    topic <- sub("(.*/help/)([^/]*)$", "\\2", file)

before

                    wfile <- sub("/help/([^/]*)$", "", file)

in help.  If I've copied it correctly (I'm on Unix here) that
will do the trick.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list