Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_informative_error

Is an error informative?


Description

[Deprecated]

is_informative_error() is a generic predicate that indicates whether testthat users should explicitly test for an error class. Since we no longer recommend you do that, this generic has been deprecated.

Usage

is_informative_error(x, ...)

Arguments

x

An error object.

...

These dots are for future extensions and must be empty.

Details

A few classes are hard-coded as uninformative:

  • simpleError

  • rlang_error unless a subclass is detected

  • Rcpp::eval_error

  • Rcpp::exception


testthat

Unit Testing for R

v3.0.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph, fnd], R Core team [ctb] (Implementation of utils::recover())
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.