last_warning: Get last warning

Description Usage Examples

View source: R/errors_warnings.r

Description

This is a helper function that returns the last produced warning message in R, which is intended to be used within any of the search functions of the websearchr package. It adds the keyword "R" to the beginning for improved accuracy of search results.

Usage

1

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Create example warning
warning("Example warning")

# Query last warning message
last_warning()

## End(Not run)

fschaffner/websearchr documentation built on Sept. 28, 2019, 10:15 a.m.