A wrapper for stop with sprintf applied to the arguments.
Notable difference is that error messages are not truncated to 1000 characters
by default.
Arguments
- ...
[any]
Seesprintf.- warning.length
[
integer(1)]
Number of chars after which the error message gets truncated, see ?options. Default is 8170.
Examples
err = "an error."
try(stopf("This is %s", err))
#> Error in eval(expr, envir) : This is an error.