[R] adding R site search to Rgui

Liaw, Andy andy_liaw at merck.com
Tue Apr 12 04:39:08 CEST 2005


From: Gabor Grothendieck

> On Apr 11, 2005 11:28 AM, Martin Maechler <maechler at stat.math.ethz.ch>
wrote:
> > 
> > If you use R 2.1.0 beta  (which you should consider seriously as
> > a good netizen ;-),  this is as simple as
> > 
> >  > RSiteSearch("String manipulation---mixed case")
> >  A search query has been submitted to http://search.r-project.org
> >  The results page should open in your browser shortly
> 
> It would be nice if RSiteSearch were an entry in the Help menu 
> in the Windows GUI.

One can easily add another menu (and menu item) for this in Rgui:

winSearch <- function() {
    string <- winDialogString("Search string", "")
    RSiteSearch(string)
}

winMenuAdd("Search")
winMenuAddItem("Search", "Search R Site", "winSearch()")

Andy




More information about the R-help mailing list