Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread Liaw, Andy
From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our R Journal manuscript complained that RSiteSearch.function was too much to type, suggesting we

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
Liaw, Andy wrote: From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our R Journal manuscript complained that RSiteSearch.function was too much to type,

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread Duncan Murdoch
On 6/5/2009 9:41 AM, spencerg wrote: Liaw, Andy wrote: From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our R Journal manuscript complained that

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
Dear Andy, Duncan, et al. Based on comments from Andy and Duncan, I'd like to revise my proposal as follows: 1. Rename the current RSiteSearch.function to findFunction and the package name from RSiteSearch.function to findFunction, with findFun being an alias for

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Duncan Murdoch
spencerg wrote: Hello All: What do you think of adding a function RSiteSeach to the package of that name, masking the RSiteSearch function in utils, trapping any call RSiteSearch('searchstring', 'function') to the current RSiteSearch.function and passing all others to

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: spencerg wrote: Hello All:      What do you think of adding a function RSiteSeach to the package of that name, masking the RSiteSearch function in utils, trapping any call RSiteSearch('searchstring', 'function') to

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: spencerg wrote: Hello All:     What do you think of adding a function RSiteSeach to the package of that

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread spencerg
Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: spencerg wrote: Hello All: What do you think of adding a

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:38 PM, spencerg spencer.gra...@prodsyse.com wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote:

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread spencerg
Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our R Journal manuscript complained that RSiteSearch.function was too much to type, suggesting we consider masking

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread spencerg
Hello All: What do you think of adding a function RSiteSeach to the package of that name, masking the RSiteSearch function in utils, trapping any call RSiteSearch('searchstring', 'function') to the current RSiteSearch.function and passing all others to utils:::RSiteSearch? This was

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
Having RSiteSearch.function be a strict superset of RSiteSearch might make sense but giving them the same name seems too heavy handed unless done via OO which seems not applicable here since R's version is not generic and the two use the same class, character, anyways. On Wed, Jun 3, 2009 at 5:37

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
If it were an entry on the Rgui menu on Windows then at least Windows users could get to it quickly regardless of the name. 2009/6/4 Romain François francoisrom...@free.fr: One other comment was that the function name is a pain to type, which I believe is also true for RSiteSearch. Considering

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
On 05/07/09 13:48, Liaw, Andy wrote: From: Duncan Murdoch I'll incorporate the changes if you like. Yes. Please do. I understand that it won't take effect for a while. When it does, I'll change my site. What do you think of the idea of adding a gmane (or other archive) search to

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
There is something to be said for taking all of these functions, including the original RSiteSearch, out of utils and putting them in the new RSiteSearch package. These are the sorts of things that will get revised frequently, and this way (I think) we won't have to bother whoever takes care of

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
Romain Francois wrote: txt - grep( '^tr.*td align=right.*a', readLines( url ), value = TRUE ) rx - '^.*?a href=(.*?)(.*?)/a.*td(.*?)/td.*$' out - data.frame( url = gsub( rx, \\1, txt ), group = gsub( rx, \\2, txt ), description = gsub( rx, \\3, txt ),

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
After reading all this, I favor doing one of two things: 1. Put all the search stuff, including the proposed gmane function, in Spencer's new package but make it one of the default packages, like utils, etc., or, 2. Put everything in utils, including Spencer's new package and the gmane

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
Jonathan Baron wrote: After reading all this, I favor doing one of two things: 1. Put all the search stuff, including the proposed gmane function, in Spencer's new package but make it one of the default packages, like utils, etc., or, 2. Put everything in utils, including Spencer's new

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Philippe Grosjean
Don't forget R wiki in the list. Best, Philippe ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( (

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have to pay this on performance: txt - rep( 'foobar/foo', 1000 ) rx - (.*?)(.*?)/(.*?) system.time( out - strapply( txt, rx, c ,

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
yes, and r graph gallery. those two would be easy to implement once the system is up. Philippe Grosjean wrote: Don't forget R wiki in the list. Best, Philippe ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread hadley wickham
On Fri, May 8, 2009 at 10:11 AM, Romain Francois romain.franc...@dbmail.com wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have to pay this on performance: txt - rep(

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Philippe Grosjean
..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( .. Romain

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
Romain Francois wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo sure, but this does not, in any way, make it less strange that gsub is not vectorized. Too bad you have to pay

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
hadley wickham wrote: On Fri, May 8, 2009 at 10:11 AM, Romain Francois romain.franc...@dbmail.com wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
Philippe Grosjean wrote: ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( (

[Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Jon: could you elaborate on what the patch does? Best, Andy Notice: This e-mail message, together with any attachments, contains information

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
From: Liaw, Andy Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Apparently the attachments were stripped off the first time. Here's a second try. I've already set format to plain

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Jonathan Baron
On 05/07/09 10:05, Liaw, Andy wrote: Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Jon: could you elaborate on what the patch does? The idea is simply to remove the mail archives, so the

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
From: Liaw, Andy From: Liaw, Andy Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Apparently the attachments were stripped off the first time. Here's a second try.

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Duncan Murdoch
On 5/7/2009 10:18 AM, Jonathan Baron wrote: On 05/07/09 10:05, Liaw, Andy wrote: Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Jon: could you elaborate on what the patch does? The idea

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
From: Duncan Murdoch On 5/7/2009 10:18 AM, Jonathan Baron wrote: On 05/07/09 10:05, Liaw, Andy wrote: Can someone in R Core please take a look at the attached patches to RSiteSearch() and its help page? I guess Jon is planning some changes on his site. Jon: could you elaborate on

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Romain Francois
About this: gmaneSearch - function( string, group = gmane.comp.lang.r.*, author = , sort = c(relevance, date, revdate), op = c(and, or) ){ sort - match.arg(sort) op - match.arg( op ) url - sprintf(

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
From: Jonathan Baron On 05/07/09 13:48, Liaw, Andy wrote: From: Duncan Murdoch I'll incorporate the changes if you like. Yes. Please do. I understand that it won't take effect for a while. When it does, I'll change my site. What do you think of the idea of adding a

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Romain Francois
We could have a few functions similar to RSiteSearch or gmaneSearch I just posted and then cook a summary html page with R ... Here is a function that grabs relevant groups from gmane: gmaneGroups - function( prefix = gmane.comp.lang.r. ){ url - URLencode( sprintf(

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liaw, Andy
I agree! Recall, though, I had added the RSiteSearch() functionality to the Rgui under Windows (Help / search.r-project.org...), so if RSiteSearch() is taken out, this need to go, too. Best, Andy From: Jonathan Baron There is something to be said for taking all of these functions,

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Liviu Andronic
Dear Jonathan, On Thu, May 7, 2009 at 4:18 PM, Jonathan Baron ba...@psych.upenn.edu wrote: can't imagine that someone would want to search just vignettes and not help pages, or the reverse. Searching vignettes only can be of interest to users. If someone is interested in (full-fledged) code

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread spencerg
1. Whatever we do with the RSiteSearch function, it should still be available every time R starts. If we put it in its own package, it should still be autoloaded with base, utils, stats, etc. 2. Sundar indicated to me that, if Jonathan would like to remove the search