Skip to contents
  • throw_error() stops execution of the current expression and executes an error action.

  • throw_warning() generates a warning message.

  • catch_conditions() and catch_message() handles unusual conditions.

Usage

throw_error(.subclass, message, call = NULL, ...)

throw_warning(.subclass, message, call = NULL, ...)

catch_message(expr)

catch_conditions(expr)

Arguments

.subclass

A character string specifying the class of the message to be returned.

message

A character string specifying the message to be returned.

call

The call.

...

Extra arguments.

expr

An expression to be evaluated.

Author

N. Frerebeau