Re: [Rd] link to an alias in another package

From: Paul Gilbert <pgilbert_at_bank-banque-canada.ca>
Date: Thu 10 Feb 2005 - 02:47:09 EST

In summary
> In some documentation for a package I am working on I have
>
> \code{\link[stats]{varimax}}
> \code{\link[stats]{promax}}
>
> The link to varimax works, but not the one to promax. Promax is an
> alias under \name{varimax}. ...

    \code(\link[stats:varimax]{promax}}

works but will probably break if promax is ever moved to its own Rd file. (From the discussion there is probably not a better general solution.)

    \code(\link{promax}}

works because stats is always installed, but is not a general solution because I have other cases where the package may not be installed.

    \code(\link[stats:promax]{varimax}}

which might be another (but presumably mistaken) interpretation of the Writing R Extensions documentation

> \link[pkg:bar]{foo} to link to the package pkg with topic (file?)
> foo and bar respectively.

does not work and also displays "varimax" in the text (which is not what I want).

Paul Gilbert



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Feb 10 02:41:30 2005

This archive was generated by hypermail 2.1.8 : Thu 10 Feb 2005 - 03:27:31 EST