Skip to contents

stops() is equivalent to stop(..., call. = FALSE). It removes calls from error messages by default. These are rarely useful and confuse users more often than they help them.

stopf() is equivalent to stops(sprintf(fmt, ...)). It wraps base::sprintf() and stops() and is used to construct flexible error messages.

Usage

stops(...)

stopf(fmt = "", ...)

Arguments

...

Further arguments respectively passed to base::stop() and base::sprintf() by stops() and stopf().

fmt

A character of length 1 passed as is to base::sprintf().

Value

Nothing. These functions are used for their side-effect of raising an error.

See also

Other utility functions: format_vector(), str_to(), vapply_1l()