[R] hyperlinks to other packages in .Rd files

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Dec 20 08:31:00 CET 2000

On Tue, 19 Dec 2000, John Fox wrote:

> Dear list members,
> I've been working on an R package, which I just checked and built with the 
> new tools in the Windows version of R 1.2.0. (These tools are wonderful, by 
> the way.) Everything went fine, except that cross-references that I tried 
> to create to help pages in other packages don't work.
> Page 14 of Writing R Extensions says:
> "There are optional arguments specified as \link[pkg]{foo} and 
> \link[pkg:bar]{foo} to link to the package pkg with topic (file?) foo and 
> bar respectively."
> I thought that I understood this passage (with the exception of the 
> parenthetical question, which is in the original text), but, for example, 
> \link[base]{hist} fails to create a link to the documentation for hist in 
> the base package.
> I've screwed around with this for a while with no success. Any help would 
> be appreciated.

Remember you are on Windows, and there links only work for packages
installed in the main library directory (point 3.3 of the rw-FAQ).
I think you will find the links do work, once you install there.
They do for me.

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