stopf: Stop Execution with String Interpolated Messages

View source: R/utils.R

stopfR Documentation

Stop Execution with String Interpolated Messages

Description

This helper combines stop function with sprintf thus allowing string interpolated messages when execution is halted.

Usage

stopf(s, ...)

Arguments

s

a character vector of format strings

...

values to be interpolated

Value

a string containing message that follows execution termination

Examples

## Not run: 
stopf("%.3f is not larger than %d and/or smaller than %d", pi, 10, 40)

## End(Not run)

Rapporter/rapportools documentation built on March 23, 2022, 2:23 a.m.