ew: Handlers

ewR Documentation

Handlers

Description

Handle errors and warnings.

Usage

e(obj)

w(obj)

Arguments

obj

A character string or an object of class error, or warning.

Examples

err <- e("Something went wrong")

foo <- function(x){
 if(is.character(x))
   return(err)

 log(x)
}

foo("a")


devOpifex/err documentation built on Feb. 5, 2024, 1:57 p.m.