stopf: Stop Execution with String Interpolated Messages

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1
stopf(s, ...)

Arguments

s

a character vector of format strings

...

values to be interpolated

Value

a string containing message that follows execution termination

Examples

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

## End(Not run)

rapportools documentation built on May 29, 2017, 11:01 a.m.

Search within the rapportools package
Search all R packages, documentation and source code