tryCatch.W.E: Catch errors and warnings

Description Usage Arguments Value Author(s) Examples

View source: R/tryCatchWE.R

Description

Catch any errors and warnings and then rerun the function if necessary. The function returns all messages and the function output.

Usage

1

Arguments

expr

R expression to evaluate.

Value

The function returns all warning and error messages and the function output.

Author(s)

Tara Valladares <tls8vx at virginia.edu>

Examples

1
2
3
4
5
6
7
8
# Load the tinytrolls data
data(tinytrolls)

# Use the emoxicon function
## Not run: 
warns.errs.tinytrolls <- tryCatch.W.E(emoxicon(text = tinyTrolls$content, lexicon = emotions))

## End(Not run)

tvall/emoxicon documentation built on Dec. 31, 2020, 9:39 a.m.