View source: R/search-functions.R
searcher | R Documentation |
Constructs a function object that will search the last R error message on search portals by opening a browser.
searcher(site, keyword = getOption("searcher.default_keyword"))
site |
Name of site to search on. Supported options:
|
keyword |
Opt to search under different default terms. |
This function acts as a closure. Thus, you will receive
a function back when only specifying the site
parameter.
To call the function, add a second set of parentheses.
The searcher
function grabs the last error message and
tries to search it. This function will ensure that R language
is the primary search context.
### Manually
searcher("google")()
## Not run:
### Automatically
# On error, automatically search the message on google
options(error = searcher("google"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.