Learn R Programming

svMisc (version 1.1.0)

search_web: Search web documents about R and R functions

Description

Retrieve web documents, or search with Google for what string.

Usage

search_web(what, type = c("R", "google"), browse = TRUE, msg = browse,
  ...)

helpSearchWeb(what, type = c("R", "google"), browse = TRUE, msg = browse, ...)

Arguments

what

The string(s) to search. In case of several strings, or several words, any of these words are searched.

type

The search engine, or location to use.

browse

Do we actually show the page in the Web browser? If type = "R", this argument is ignored and the result is always displayed in the Web browser.

msg

Do we issue a message indicating that a page should be displayed shortly in the Web browser? If type = "R", this argument is ignored and a message is always displayed.

...

Further arguments to format the result page in case of type = "R". These are the same arguments as for RSiteSearch().

Value

Returns the URL used invisibly (invoked for its side effect of opening the Web browser with the search result, when browse = TRUE).

See Also

RSiteSearch(), help.search()

Examples

Run this code
# NOT RUN {
search_web("volatility")                    # R site search, by default
search_web("volatility", type = "google")   # Google search
# }

Run the code above in your browser using DataLab