Learn R Programming

BBmisc (version 1.13)

stopf: Wrapper for stop and sprintf.

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

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

Value

Nothing.

Arguments

...

[any]
See sprintf.

warning.length

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

Examples

Run this code
err = "an error."
try(stopf("This is %s", err))

Run the code above in your browser using DataLab