From romain.francois at dbmail.com  Thu May  7 19:59:14 2009
From: romain.francois at dbmail.com (Romain Francois)
Date: Thu, 07 May 2009 19:59:14 +0200
Subject: [Rd] proposed changes to RSiteSearch
In-Reply-To: <39B6DDB9048D0F4DAD42CB26AAFF0AFA073C46FD@usctmx1106.merck.com>
References: <39B6DDB9048D0F4DAD42CB26AAFF0AFA07381973@usctmx1106.merck.com>	<20090507141812.GB25422@psych.upenn.edu>	<4A031A22.7080702@stats.uwo.ca>
	<39B6DDB9048D0F4DAD42CB26AAFF0AFA073C46FD@usctmx1106.merck.com>
Message-ID: <4A032172.3020008@dbmail.com>

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&group=%s&sort=%s&DEFAULTOP=%s', 

            gsub( ' +', '+', string),  author,  group,  sort, op )
    url <- URLencode( url )
    browseURL( url )
}


Liaw, Andy wrote:
> 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 what the patch does?
>>>>         
>>> The idea is simply to remove the mail archives, so the 
>>>       
>> search will be
>>     
>>> only of functions' help pages.  Eventually I will also add package
>>> vignettes, but I don't think we need anything special for that.  I
>>> can't imagine that someone would want to search just 
>>>       
>> vignettes and not
>>     
>>> help pages, or the reverse.
>>>
>>> The reasons are: 1. The mail archives are becoming increasingly
>>> difficult and time consuming for me to maintain.  2. There are now
>>> three other ways of searching mail archives, all of which seem much
>>> better than mine, but there seem to be no other good ways to search
>>> help pages for functions, and, indeed, the new RSiteSearch packages
>>> does only functions.  3. With only functions it would be much easier
>>> for someone to set up a complete mirror of my site, which 
>>>       
>> seems like a
>>     
>>> good idea.
>>>       
>> I'll incorporate the changes if you like.  What do you think 
>> of the idea 
>> of adding a gmane (or other archive) search to your results 
>> page?  Then 
>> if someone doesn't like what the man pages show, you can send them 
>> somewhere else, rather than leaving them to find out the 
>> other resources 
>> themselves.
>>
>> gmane has sample code for this on their search page 
>> search.gmane.org, so 
>> it looks reasonably easy.  I'd suggest following their last example, 
>> with a drop-down box to select mailing lists, with 
>> comp.lang.r.* as an 
>> option for "all lists".
>>
>> Duncan Murdoch
>>     
>
> Actually, I was thinking about a possible RHelpSearch() in addition, if
> Jon is no longer going to include the R-help archive in the search.  I
> used the current RSiteSearch() a lot more for searching R-help archive
> than functions in packages.  Ideas?  comments?
>
> Andy 
> Notice:  This e-mail message, together with any attachme...{{dropped:12}}
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>   


-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr



[Rd] proposed changes to RSiteSearch
Romain Francois