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.
Arguments
- ...
Further arguments respectively passed to
base::stop()
andbase::sprintf()
bystops()
andstopf()
.- fmt
A character of length 1 passed as is to
base::sprintf()
.
See also
Other utility functions:
format_vector()
,
str_to()
,
vapply_1l()