do_safely: Run expression and retain errors

View source: R/common_conditions.R

do_safelyR Documentation

Run expression and retain errors

Description

The function allows to evaluates an expression and store eventual errors in the results data structure.

Usage

do_safely(expr)

Arguments

expr

Expression to evaluate

Value

A list with entries results and error (one of them is NA)

Examples

do_safely("a"/1)

UUPharmacometrics/PsNR documentation built on June 30, 2023, 8:34 a.m.