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 fo

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 "RSit

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 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, sugges

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 "RSiteS

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:38 PM, spencerg wrote: > Gabor Grothendieck wrote: >> >> On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch >> wrote: >> >>> >>> Gabor Grothendieck wrote: >>> On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch wrote: > > spencerg wrote: > >>

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 wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch wrote: spencerg wrote: Hello All: What do you think of adding a function "RSiteSeach" to the package of th

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch wrote: > Gabor Grothendieck wrote: >> >> On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch >> 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 Duncan Murdoch
Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch 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',

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch 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 the

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 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 "utils:::R

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 : > One other comment was that the function name is a pain to type, which I > believe is also true for "RSiteSearch". Considering we (I) might add ot

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:3

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"? Thi

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

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 > wrote: > >> strapply in package gsubfn brings elegance here: >> >> >>> txt <- 'bar' >>> 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 Wacek Kusnierczyk
Romain Francois wrote: > strapply in package gsubfn brings elegance here: > > > txt <- 'bar' > > 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

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 hadley wickham
On Fri, May 8, 2009 at 10:11 AM, Romain Francois wrote: > strapply in package gsubfn brings elegance here: > >> txt <- 'bar' >> rx <- "<(.*?)>(.*?)" >> strapply( txt, rx, c , perl = T ) > [[1]] > [1] "foo" "bar" "foo" > > Too bad you have to pay this on performance: > >> txt <- rep( 'bar', 1000 )

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 ) ) ) ) ) ( ( ( ( (N

Re: [Rd] proposed changes to RSiteSearch

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

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

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 f

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
Romain Francois wrote: > >txt <- grep( '^ TRUE ) > rx <- '^.*?(.*?).*(.*?).*$' >out <- data.frame( >url = gsub( rx, "\\1", txt ), >group = gsub( rx, "\\2", txt ), >description = gsub( rx, "\\3", txt ), looking at this bit of your code, i wonder why gsub is not

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 ut

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

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 ca

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 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 examples, and not in

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Gabor Grothendieck
But help really needs to be delivered with R, not an addon. It should not be necessary to know how to install packages just to get this level of help. I think it needs to be where it is now. On Thu, May 7, 2009 at 4:02 PM, Liaw, Andy wrote: > >  I agree!  Recall, though, I had added the RSiteSear

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, > inclu

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( "http://dir.gmane.org

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

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( 'http://search.gmane.org/?query=%s&author=%s&grou

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

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 i

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

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 t

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 "pla