Skip to contents

The search_google function searches Google using: https://www.google.com/search?q=<query>

Usage

search_google(query = geterrmessage(), rlang = TRUE)

Arguments

query

Contents of string to search. Default is the error message.

rlang

Search for results written in R. Default is TRUE

Value

The generated search URL or an empty string.

Examples

# Search Google
search_google("r-project")
#> Please type into your browser:
#> https://google.com/search?q=r-project%20r%20programming

if (FALSE) { # \dontrun{
# On error, automatically search the message on google
options(error = searcher("google"))
options(error = search_google)
} # }