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.  
> 
> I've already set "format" to "plain text" in Outlook, even in 
> that first post.  If this still doesn't work, can some one 
> explain to me what I have to do in Outlook to get the 
> attachment through?

OK, as suggested by Bill Dunlap and Spencer Graves, I've renamed .diff
to .diff.txt.  Hopefully the third time is charm...

Apologies for the wasted bandwidth.
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.
--- RSiteSearch.Rd      2009-04-18 03:28:08.000000000 -0400
+++ /home/liawand/RSiteSearch.Rd        2009-05-07 09:54:02.000000000 -0400
@@ -6,17 +6,15 @@
 \name{RSiteSearch}
 \alias{RSiteSearch}
 \title{
-  Search for Key Words or Phrases in the R-help Mailing List Archives
-  or Documentation
+  Search for Key Words or Phrases in the function help pages
 }
 \description{
-  Search for key words or phrases in the R-help mailing list
-  archives, or \R manuals and help pages, using the search engine at
-  \url{http://search.r-project.org} and view them in a web browser.
+  Search for key words or phrases in the function help pages, using the
+  search engine at \url{http://search.r-project.org} and view them in a
+  web browser.
 }
 \usage{
 RSiteSearch(string,
-            restrict = c("Rhelp02a", "functions", "docs"),
             format = c("normal", "short"),
             sortby = c("score", "date:late", "date:early",
                        "subject", "subject:descending",
@@ -27,14 +25,6 @@
 \arguments{
   \item{string}{word(s) or phrase to search.  If the words are to be
     searched as one entity, enclose all words in braces (see example).}
-  \item{restrict}{a character vector, typically of length larger than one:
-    What areas to search in:
-    \code{Rhelp02a} for R-help mailing list archive since 2002,
-    \code{Rhelp01} for mailing list archive before 2002,
-    \code{docs} for R manuals,
-    \code{functions} for help pages.
-    \code{R-devel} for R-devel mailing list.
-    Use \code{c()} to specify more than one.}
   \item{format}{\code{normal} or \code{short} (no excerpts); can be
     abbreviated.}
   \item{sortby}{character string (can be abbreviated) indicating how to
@@ -60,6 +50,11 @@
 
   Unique partial matches will work for all arguments.  Each new
   browser window will stay open unless you close it.
+
+  Mailing lists may be searched at several other sites, including
+  \url{http://tolstoy.newcastle.edu.au/R/}, and
+  \url{http://markmail.org/search/list:r-project}.  See
+  \url{http://search.r-project.org} for a full list.
 }
 \author{Andy Liaw and Jonathan Baron}
 \seealso{
@@ -70,15 +65,8 @@
 \examples{\donttest{ # need Internet connection
 RSiteSearch("{logistic regression}") # matches exact phrase
 Sys.sleep(5) # allow browser to open, take a quick look
-RSiteSearch("Baron Liaw", restrict = "Rhelp02a")
-## Search in R-devel archive and documents  (and store the query-string):
-Sys.sleep(5)
-fullquery <- RSiteSearch("S4", restrict = c("R-dev", "docs"))
+fullquery <- RSiteSearch("S4", sortby = "date:late")
 fullquery # a string of ~ 116 characters
-## the latest purported bug reports, responses ...
-%% FIXME: "/bug/ and other reg.exp.s seem to fail
-Sys.sleep(5)
-RSiteSearch("bug", restrict = "R-devel", sortby = "date:late")
 }}
 \keyword{utilities}
 \keyword{documentation}
--- RSiteSearch.R       2009-04-18 03:28:06.000000000 -0400
+++ /home/liawand/RSiteSearch.R 2009-05-07 09:53:59.000000000 -0400
@@ -14,8 +14,7 @@
 #  A copy of the GNU General Public License is available at
 #  http://www.r-project.org/Licenses/
 
-RSiteSearch <- function(string, restrict = c("Rhelp02a", "functions", "docs"),
-                       format = c("normal", "short"),
+RSiteSearch <- function(string, formatt = c("normal", "short"),
                        sortby = c("score", "date:late", "date:early",
                        "subject", "subject:descending",
                        "from", "from:descending", "size", "size:descending"),
@@ -27,10 +26,6 @@
     mpp <- paste0("max=", matchesPerPage)
     format <- paste0("result=", match.arg(format))
 
-    restrictVALS <- c("Rhelp02a", "Rhelp01", "functions", "docs", "R-devel")
-    restr <- match.arg(restrict, choices = restrictVALS, several.ok = TRUE)
-    restr <- paste(paste0("idxname=", restr), collapse = "&")
-
     sortby <- match.arg(sortby)
     sortby <- paste0("sort=",
                     switch(sortby,
@@ -45,7 +40,7 @@
     ## we know this is a http:// URL, so encoding should be safe.
     ## it seems that firefox on Mac OS needs it for {...}
     ## OTOH, Namazu does not decode in, say, sort=date:late.
-    qstring <- paste(URLencode(string), mpp, format, sortby, restr, sep = "&")
+    qstring <- paste(URLencode(string), mpp, format, sortby, sep = "&")
     browseURL(qstring)
     cat(gettext("A search query has been submitted to"),
        "http://search.r-project.org\n";)
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to