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/pmutils documentation built on July 4, 2023, 1:15 a.m.