[Rd] library path in Rd link

Adrian Dusa dusa.adrian at gmail.com
Thu Nov 15 00:09:00 CET 2007


On Wednesday 14 November 2007, Duncan Murdoch wrote:
> On 11/14/2007 8:49 AM, Adrian Dusa wrote:
> > [...]
> >
> > 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.

This is what I thought, too. But if I link for example to function anova() in 
pacakge stats, the html link after installing the new package is:

file:///home/adi/myRlibrary/stats/html/anova.html

where the stats package is by default installed in:

/usr/lib/R/library/

(indeed my question was related to Windows too, not only on Linux)


> 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).

I understand, thank you. I learned from Prof. Ripley's answer that Windows has 
link.html.help() function to resolve the html help files from all installed 
packages.

Best wishes,
Adrian


-- 
Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd
050025 Bucharest sector 5
Romania
Tel./Fax: +40 21 3126618 \
          +40 21 3120210 / int.101



More information about the R-devel mailing list