enable_errorist | R Documentation |
Activates or disengages the automatic look up of error or warning codes in R.
enable_errorist(
error_search_func = getOption("errorist.warning", searcher::search_google),
warning_search_func = getOption("errorist.warning", searcher::search_google)
)
disable_errorist()
error_search_func, warning_search_func |
The search function from |
The enable_errorist()
is automatically called on package start to
inject handlers for warnings and errors. When the package is unloaded,
disable_errorist()
is called to remove warnings and errors. If you
wish to disable warnings or error individually, please use either
disable_error_shim()
or disable_warning_shim()
.
James Joseph Balamuta
enable_error_shim()
, enable_warning_shim()
,
disable_error_shim()
, disable_warning_shim()
### Default search engine is Google
# Enable automatic search
# NB: This is done automatically on package load.
enable_errorist()
# Some code ...
# Disable automatic search
# NB: This is done automatically on package unload via "detach()"
disable_errorist()
#### Custom search engines
# Enable automatic search with custom search engines
# NB: This is done automatically on package load.
enable_errorist(error_search_func = searcher::search_bing,
warning_search_func = searcher::search_duckduckgo)
# Some code ...
# Disable automatic search
# NB: This is done automatically on package unload via "detach()"
disable_errorist()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.