Rev 51103 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/RSiteSearch.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2010 R Core Development Team% Distributed under GPL 2 or later\name{RSiteSearch}\alias{RSiteSearch}\title{Search for Key Words or Phrases in the R-help Mailing List Archivesor Documentation}\description{Search for key words or phrases in the R-help mailing listarchives, help pages, vignettes or task views, using the search engineat \url{http://search.r-project.org} and view them in a web browser.}\usage{RSiteSearch(string,restrict = c("functions", "vignettes", "views"),format = c("normal", "short"),sortby = c("score", "date:late", "date:early","subject", "subject:descending","from", "from:descending","size", "size:descending"),matchesPerPage = 20)}\arguments{\item{string}{A character string specifying word(s) or a phrase tosearch. If the words are to be searched as one entity, enclose allwords in braces (see the first example).}\item{restrict}{a character vector, typically of length greater than one.Possible areas to search in:\code{Rhelp10} for R-help mailing list archive starting January 2010,\code{Rhelp08} for mailing list archive 2008--2009,\code{Rhelp02} for mailing list archive 2002--2007,\code{Rhelp01} for mailing list archive before 2002,\code{R-devel} for R-devel mailing list,\code{R-sig-mix} for R-sig-mix mailing list,\code{functions} for help pages,\code{views} for task views and\code{vignettes} for package vignettes.}\item{format}{\code{normal} or \code{short} (no excerpts); can beabbreviated.}\item{sortby}{character string (can be abbreviated) indicating how tosort the search results:\cr(\code{score},\code{date:late} for sorting by date with latest results first,\code{date:early} for earliest first,\code{subject} for subject in alphabetical order,\code{subject:descending} for reverse alphabetical order,\code{from} or \code{from:descending} for sender (when applicable),\code{size} or \code{size:descending} for size.)}\item{matchesPerPage}{How many items to show per page.}}\details{This function is designed to work with the search site at\url{http://search.r-project.org}, and depends on that sitecontinuing to be made available (thanks to Jonathan Baron and theSchool of Arts and Sciences of the University of Pennsylvania).Unique partial matches will work for all arguments. Each newbrowser window will stay open unless you close it.}\value{(Invisibly) the complete URL passed to the browser,including the query string.}\author{Andy Liaw and Jonathan Baron}\seealso{\code{\link{help.search}}, \code{\link{help.start}} for local searches.\code{\link{browseURL}} for how the help file is displayed.}\examples{\donttest{ # need Internet connectionRSiteSearch("{logistic regression}") # matches exact phraseSys.sleep(5) # allow browser to open, take a quick lookRSiteSearch("Baron Liaw", restrict = "Rhelp02")## Search in R-devel archive and recent R-help (and store the query-string):Sys.sleep(5)fullquery <- RSiteSearch("S4", restrict = c("R-dev", "Rhelp10", "Rhelp08"))fullquery # a string of ~ 116 characters## the latest purported bug reports, responses ...%% FIXME: "/bug/ and other reg.exp.s seem to failSys.sleep(5)RSiteSearch("bug", restrict = "R-devel", sortby = "date:late")}}\keyword{utilities}\keyword{documentation}