RSiteSearch {utils} | R Documentation |
Search for Key Words or Phrases in Documentation
Description
Search for key words or phrases in various documentation, such as R manuals, help pages of base and CRAN packages, vignettes, task views and others, using the search engine at https://search.r-project.org and view them in a web browser.
Usage
RSiteSearch(string,
restrict = c("functions", "descriptions", "news", "Rfunctions",
"Rmanuals", "READMEs", "views", "vignettes"),
format,
sortby = c("score", "date:late", "date:early", "subject",
"subject:descending", "size", "size:descending"),
matchesPerPage = 20,
words = c("all", "any"))
Arguments
string |
A character string specifying word(s) or phrase(s) to search. If the words are to be searched as one entity, enclose them either in (escaped) quotes or in braces. |
restrict |
A character vector, typically of length greater than one.
Values can be abbreviated.
Possible areas to search in:
|
format |
deprecated. |
sortby |
character string (can be abbreviated) indicating how to
sort the search results: |
matchesPerPage |
How many items to show per page. |
words |
Show results matching |
Details
This function is designed to work with the search site at https://search.r-project.org.
Unique partial matches will work for all arguments. Each new browser window will stay open unless you close it.
Value
(Invisibly) the complete URL passed to the browser, including the query string.
Author(s)
Andy Liaw and Jonathan Baron and Gennadiy Starostin
See Also
help.search
, help.start
for local searches.
browseURL
for how the help file is displayed.
Examples
# need Internet connection
## for phrase searching you may use (escaped) double quotes or brackets
RSiteSearch("{logistic regression} \"glm object\"")
RSiteSearch('"logistic regression"')
## Search in vignettes and help files of R base packages
## store the query string:
fullquery <- RSiteSearch("lattice", restrict = c("vignettes","Rfunctions"))
fullquery # a string of 112 characters