From murdoch at stats.uwo.ca  Thu Nov 15 00:54:50 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 14 Nov 2007 18:54:50 -0500
Subject: [Rd] library path in Rd link
In-Reply-To: <200711150144.33561.dusa.adrian@gmail.com>
References: <200711141549.54176.dusa.adrian@gmail.com>	<200711150109.02826.dusa.adrian@gmail.com>	<Pine.LNX.4.64.0711142309470.1433@gannet.stats.ox.ac.uk>
	<200711150144.33561.dusa.adrian@gmail.com>
Message-ID: <473B8ACA.20508@stats.uwo.ca>

On 14/11/2007 6:44 PM, Adrian Dusa wrote:
> On Thursday 15 November 2007, Prof Brian Ripley wrote:
>> [...]
>>> Using as above:
>>> \code{\link{anova}}
>>>
>>> the html help file directs to
>>> file:///home/adi/myRlibrary/stats/html/anova.html
>> I hope it is actually ../../stats/html/anova.html and the browser is
>> interpreting that as a full URL.
>>
>>> instead of
>>> file:///usr/lib/R/library/stats/html/anova.html
>> But at run time help.start() creates links into a subdirectory of
>> tempdir().  As in
>>
>>> help.start()
> 
> I got it.
> Perhaps it would be useful to have another startup option, something like:
> options(htmlLinksResolve=TRUE)
> 
> that one could use in the .First() function from .Rprofile
> 
> I tried using help.start() in .Rprofile, but it throws a (probably obvious) 
> error:
> Error: could not find function "help.start"

That's just because .Rprofile is run before most packages are attached; 
you should be able to say utils::help.start() to get it to run.

> 
> 
> For my personal purposes, all questions have been answered though.
> Thank you very much,
> Adrian
> 
>



[Rd] library path in Rd link
Duncan Murdoch