From dusa.adrian at gmail.com  Thu Nov 15 00:09:00 2007
From: dusa.adrian at gmail.com (Adrian Dusa)
Date: Thu, 15 Nov 2007 01:09:00 +0200
Subject: [Rd] library path in Rd link
In-Reply-To: <473B6A4F.2070208@stats.uwo.ca>
References: <200711141549.54176.dusa.adrian@gmail.com>
	<473B6A4F.2070208@stats.uwo.ca>
Message-ID: <200711150109.00697.dusa.adrian@gmail.com>

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



[Rd] library path in Rd link
Adrian Dusa