automatic_error_search: An automatic error check and search

View source: R/error-search.R

automatic_error_searchR Documentation

An automatic error check and search

Description

When passed to 'options(error = automatic_error_search', the function will run every time R encounters an error. It will check whether you have made the common mistake of trying to subset a function ('closure'). If it is any other type of error, it will copy the error message and launch a Google search.

Usage

automatic_error_search()

Details

This function is still being developed and tested and functionality may change. For example, I may decide to include a list of errors that do not trigger a Google search.

Value

Nothing

References

Adapted from the code published in this Tweet https://twitter.com/RCoderWeb/status/1358474355492151297

Examples

## Not run: 
  options(error = automatic_error_search)

## End(Not run)


edsandorf/gizmo documentation built on Oct. 7, 2022, 3:45 p.m.