Skip to contents

Check whether any warnings are stored

Usage

has_warning()

Value

TRUE if the message store contains at least one warning, FALSE otherwise.

Examples

clear_messages()
has_warning()   # FALSE
#> [1] FALSE