From drjlove at gmail.com  Thu May 27 10:54:50 2010
From: drjlove at gmail.com (Jamie Love)
Date: Thu, 27 May 2010 20:54:50 +1200
Subject: [Rd] R 2.10 and help
In-Reply-To: <4BFE27C6.608@dbmail.com>
References: <AANLkTinFsFJfQ84ku5xTWa0dj2lWG1WYQugG-UftAH4K@mail.gmail.com>
	<672BE353-47D1-455D-9BE6-31CC4F5352ED@r-project.org>
	<AANLkTikQ9NKmsXgnG-XniAwb-gZjwYPl8NP6w8RaYt5E@mail.gmail.com>
	<4BFE27C6.608@dbmail.com>
Message-ID: <AANLkTimikBOk4ZnEHdtROunYVlprkQ9p7kJpxOZBFIHp@mail.gmail.com>

Thanks to Romain, this is perfect -

On Thu, May 27, 2010 at 8:05 PM, Romain Francois
<romain.francois at dbmail.com> wrote:
>
> 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
>
>
>



-- 
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.



[Rd] R 2.10 and help
Jamie Love