stopFormatted: Stop Function Exectution With Formatted Message

View source: R/stopFormatted.R

stopFormattedR Documentation

Stop Function Exectution With Formatted Message

Description

Stop Function Exectution With Formatted Message

Usage

stopFormatted(x, ..., call. = FALSE)

Arguments

x

Error message, possibly containing percentage placeholders, passed as argument fmt to sprintf

...

as many values as referenced with percentage placeholders in the error message

call.

logical, indicating if the call should become part of the error message.

Examples

try(stopFormatted(
  "Hi, %s, the program fails for the %d-th time.", "Dexter", 1000
))

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.