Skip to content

library path in Rd link

7 messages · Duncan Murdoch, Adrian Dusa, Brian Ripley

#
On Thu, 15 Nov 2007, Adrian Dusa wrote:

            
I hope it is actually ../../stats/html/anova.html and the browser is 
interpreting that as a full URL.
But at run time help.start() creates links into a subdirectory of 
tempdir().  As in
Making links in per-session dir ...
If '/home/ripley/bin/firefox' is already running, it is *not*
     restarted, and you must switch to its window.
Otherwise, be patient ...

and without that
Help for 'anova' is shown in browser /home/ripley/bin/firefox ...
Use
         help("anova", htmlhelp = FALSE)
or
         options(htmlhelp = FALSE)
to revert.
Warning message:
In .show_help_on_topic_as_HTML(file, topic) :
   Using non-linked HTML file: style sheet and hyperlinks may be incorrect

and note the last line.

(In case anyone wonders about the browser path: I am running 32-bit 
Firefox on x86_64 Linux.)
#
On Thursday 15 November 2007, Prof Brian Ripley wrote:
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"


For my personal purposes, all questions have been answered though.
Thank you very much,
Adrian
#
On 14/11/2007 6:44 PM, Adrian Dusa wrote:
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.
#
On Thursday 15 November 2007, Duncan Murdoch wrote:
Smooth :o)
#
On Thu, 15 Nov 2007, Adrian Dusa wrote:

            
You could have a function to run there, essentially (from help.start())

     .Script("sh", "help-links.sh",
             paste(tempdir(), paste(.libPaths(), collapse = " ")))

and perhaps (it is a lot slower)

     utils::make.packages.html()

The problem is that even the first can be slow on a network-mounted file 
system with a lot of packages installed, do we don't want to do it by 
default.
Duncan has answered that.

  
    
#
On Thu, 15 Nov 2007, Prof Brian Ripley wrote:

            
It transpires that currently you do need both: although the script is 
passed the library locations it does not make use of them, leaving the 
linking to make.packages.html.  (That used not to be the case.)
So speed is the problem: I am seeing about 4 secs on a system with 1450 
packages on the local disc, and 33 secs on a slower system with a 
network-mounted FS.
#
On Thursday 15 November 2007, Prof Brian Ripley wrote:
Completely understandable, it's not going to be automatic. Users who don't 
suffer from these restrictions could manually make use of the script.

Thank you very much,
Adrian