call_user_fun: Calls a Function Provided by the User

View source: R/call_user_fun.R

call_user_funR Documentation

Calls a Function Provided by the User

Description

r lifecycle::badge("deprecated") Calls a function provided by the user and adds the function call to the error message if the call fails.

Usage

call_user_fun(call)

Arguments

call

Call to be executed

Default value

none

Value

The return value of the function call

See Also

Other deprecated: date_source(), derive_param_extreme_record(), derive_var_dthcaus(), derive_var_extreme_dt(), derive_var_extreme_dtm(), dthcaus_source(), get_summary_records()

Examples

call_user_fun(compute_bmi(
  height = 172,
  weight = 60
))

try(call_user_fun(compute_bmi(
  height = 172,
  weight = "hallo"
)))

admiral documentation built on June 26, 2025, 1:08 a.m.