Re: [Rd] R 2.10 and help

2010-05-27 Thread Jamie Love
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



 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


-- 
Jamie Love

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R 2.10 and help

2010-05-27 Thread Romain Francois


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

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R 2.10 and help

2010-05-27 Thread Jamie Love
Thanks to Romain, this is perfect -

On Thu, May 27, 2010 at 8:05 PM, Romain Francois
romain.franc...@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.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R 2.10 and help

2010-05-26 Thread Jamie Love
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,

-- 
Jamie Love

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R 2.10 and help

2010-05-26 Thread Simon Urbanek

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

 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.
 

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

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R 2.10 and help

2010-05-26 Thread Hadley Wickham
 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.


 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

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

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel