loading...

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

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).

Note

The RSiteSearch() function in the 'utils' package is used when type = "R".

Examples

if (FALSE) {
search_web("volatility")                    # R site search, by default
search_web("volatility", type = "google")   # Google search
}