From romain.francois at dbmail.com  Thu May 27 10:05:26 2010
From: romain.francois at dbmail.com (Romain Francois)
Date: Thu, 27 May 2010 10:05:26 +0200
Subject: [Rd] R 2.10 and help
In-Reply-To: <AANLkTikQ9NKmsXgnG-XniAwb-gZjwYPl8NP6w8RaYt5E@mail.gmail.com>
References: <AANLkTinFsFJfQ84ku5xTWa0dj2lWG1WYQugG-UftAH4K@mail.gmail.com>	<672BE353-47D1-455D-9BE6-31CC4F5352ED@r-project.org>
	<AANLkTikQ9NKmsXgnG-XniAwb-gZjwYPl8NP6w8RaYt5E@mail.gmail.com>
Message-ID: <4BFE27C6.608@dbmail.com>


Le 27/05/10 09:48, Jamie Love a ?crit :
>
> 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.

Perhaps something like this:

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

Romain

> Ta
>
>
>>
>> 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
>>
>


-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/cork4b : highlight 0.1-8
|- http://bit.ly/bklUXt : RcppArmadillo 0.2.1

`- http://bit.ly/936ck2 : Rcpp 0.8.0



[Rd] R 2.10 and help
Romain Francois