try_: Try execute function which might throw exception.

View source: R/exception.R

try_R Documentation

Try execute function which might throw exception.

Description

Try execute function which might throw exception.

Usage

try_(expr, silent = TRUE)

Arguments

expr

Function which should be executed.

silent

Logical value: if TRUE, the error message is not shown.

Value

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


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.