Skip to content

R 2.10 and help

6 messages · Jamie Love, Simon Urbanek, Hadley Wickham +1 more

#
Hi all,

I've been developing a little project for the past few months on R2.9.
The project utilises RServe to access R over at tcp/ip connection.

One feature of the project is to take R-Help and display it to the
user through my own UI. In 2.9 this worked well as all the html help
was pre-generated - I could ask R to find the help (e.g. help(plot)
would return the rd file), and then I could look up the .html file
from that.

In R 2.10 things changed dramatically for help, and now html help is
generated when requested from the rd files.

I've tried various ways to access the help as HTML since then, but
I've had no luck. I was wondering if anyone would be able to suggest
an approach where I could run 'help(plot)', and then take the
resulting .rd file and generate the necessary html help from it.

Thanks,
#
On May 26, 2010, at 4:51 PM, Jamie Love wrote:

            
It's much more simple since 2.10 as you can simply use the URL (same URL as the help system uses). For examples see JGR or the Mac GUI. Or you can do the same thing that the Rhttpd server does  actually generating the html - see tools:::httpd 

Cheers,
Simon
#
Another approach along the same lines is the in progress helpr
package: http://github.com/hadley/helpr

Hadley
#
Thanks for the info,

I'm happy to use the new httpd server that serves the help files -
that'd definitely help. My difficulty with this approach is that I'm
not sure how to get the URL -

Say for example I've done help.start(),

then I do:

help(plot)

it will redirect my web browser to the plot page -

How can I stop it touching my web browser and instead return to me the URL.

I tried overriding the browseURL() function, but it seem to do nothing.

Ta

  
    
#
Le 27/05/10 09:48, Jamie Love a ?crit :
Perhaps something like this:

 > options( browser = function(url, ...) print( url ) )
 > ?plot
[1] "http://127.0.0.1:9000/library/graphics/html/plot.html"

Romain

  
    
#
Thanks to Romain, this is perfect -

On Thu, May 27, 2010 at 8:05 PM, Romain Francois
<romain.francois at dbmail.com> wrote: