Re: [Rd] library path in Rd link

From: Duncan Murdoch <>
Date: Wed, 14 Nov 2007 16:36:15 -0500

On 11/14/2007 8:49 AM, Adrian Dusa wrote:
> Dear all,
> When creating new functions in a package, there is a "See also" component in
> the Rd file.
> Usually one uses \link{otherfun}, if the other function is from the same
> package, or \link[otherpackage]{otherfun} otherwise.
> The trouble is that I install new packages not in the default R library
> folder, but into some other subfolder in my home, so the link searches
> for "otherpackage" in my home subfolder.
> Is there a method to create links to functions from the base package, for
> example (which is installed by default in the normal library folder)?

I believe this is normally automatic in platforms other than Windows. On Windows, the answer is no.

The problem is that in most cases R isn't in charge of the help file viewing. There isn't a good way to make a link from an HTML file to a location that isn't known in advance, for example.

On Unix-alikes, the workaround is to build soft links to all the packages in a standard location; but soft links don't work on Windows (and we don't want to get into the almost-undocumented hard links that exist on some Windows file systems).

Duncan Murdoch mailing list Received on Wed 14 Nov 2007 - 21:39:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 17 Nov 2007 - 00:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.