do_call_handler: Call a function with given parameters and capture errors,...

View source: R/utils.R

do_call_handlerR Documentation

Call a function with given parameters and capture errors, warnings, or messages that occur during evaluation.

Description

Call a function with given parameters and capture errors, warnings, or messages that occur during evaluation.

Usage

do_call_handler(
  name,
  fun,
  params = list(),
  verbose = 1,
  call = rlang::caller_env()
)

Arguments

name

a name to give some context for the call

fun

a function to call

params

arguments to pass to fun

verbose

Verbosity level. If greater than 1, then handle warnings and messages in addition to errors.

Value

the results of calling fun with params


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.