stopError: Generate an error

View source: R/misc.R

stopErrorR Documentation

Generate an error

Description

Convenience function for stop(simpleError())

Usage

stopError(...)

Arguments

...

Strings to be concatenated into error message

Value

Generates stopping error before returning tryCatch(stopError('Error: we had ',sum(1:10),' problems'),error=function(e)print(e))


sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.