simple_error: Call base::stop with interpolated arguments.

Description Usage Arguments Examples

View source: R/utils.R

Description

Call base::stop with interpolated arguments.

Usage

1

Arguments

message

character. The message to call base::stop with.

...

any instances of "%s" in message will be replaced with the respective additional arguments.

call.

logical. Whether or not to show a stack trace. The default is TRUE.

Examples

1
2
3
4
5
## Not run: 
stopifnot(identical('hello world', tryCatch(error = function(e) e$message,
  simple_error("hello %s", "world"))))

## End(Not run)

robertzk/refclass documentation built on May 25, 2017, 6:37 a.m.