Skip to content
Back to formatted view

Raw Message

Message-ID: <420A307D.5060702@bank-banque-canada.ca>
Date: 2005-02-09T16:48:47Z
From: Paul Gilbert
Subject: link to an alias in another package
In-Reply-To: <Pine.LNX.4.61.0502081201160.25242@gannet.stats>

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