stopf: Wrapper for stop and sprintf.

Description Usage Arguments Value Examples

View source: R/stopf.R

Description

A wrapper for stop with sprintf applied to the arguments. Notable difference is that error messages are not truncated to 1000 characters by default.

Usage

1
stopf(..., warning.length = 8170L)

Arguments

...

[any]
See sprintf.

warning.length

[integer(1)]
Number of chars after which the error message gets truncated, see ?options. Default is 8170.

Value

Nothing.

Examples

1
2
err = "an error."
try(stopf("This is %s", err))

BBmisc documentation built on May 2, 2019, 8:29 a.m.

Related to stopf in BBmisc...