catch: Catch and execute function.

View source: R/exception.R

catchR Documentation

Catch and execute function.

Description

Try execute function which might throw exception.

Usage

catch(value, catchfn)

Arguments

value

Value which might be exception.

catchfn

Function which will be called when expr throw exception with error message as argument.

Value

return value if expr don't throw, or exception if it throw.


hmito/hmRLib documentation built on Sept. 8, 2024, 4:49 p.m.