stopf {W4MRUtils}R Documentation

stopf - to stop and format message

Description

stopf calls sprintf of its parameters to build the error message and stops with the given message

Usage

stopf(...)

Arguments

...

Arguments passed on to base::sprintf

fmt

a character vector of format strings, each of up to 8192 bytes.

Author(s)

L.Pavot

Examples


tryCatch({
  file <- "/tmp/test"
  stopf("Error in %s file.", file)
}, error = function(error) {
  print(error)
})


[Package W4MRUtils version 1.0.0 Index]