util_handling_additional_fun_params: Utilities to handle extra arguments in analysis functions

util_handling_additional_fun_paramsR Documentation

Utilities to handle extra arguments in analysis functions

Description

[Stable] Important additional parameters, useful to modify behavior of analysis and summary functions are listed in rtables::additional_fun_params. With these utility functions we can retrieve a curated list of these parameters from the environment, and pass them to the analysis functions with dedicated ...; notice that the final ⁠s_*⁠ function will get them through argument matching.

Usage

retrieve_extra_afun_params(extra_afun_params)

get_additional_afun_params(add_alt_df = FALSE)

Arguments

extra_afun_params

(list)
list of additional parameters (character) to be retrieved from the environment. Curated list is present in rtables::additional_fun_params.

add_alt_df

(logical)
if TRUE, the function will also add .alt_df and .alt_df_row parameters.

Value

  • retrieve_extra_afun_params returns a list of the values of the parameters in the environment.

  • get_additional_afun_params returns a list of additional parameters.

Functions

  • retrieve_extra_afun_params(): Retrieve additional parameters from the environment.

  • get_additional_afun_params(): Curated list of additional parameters for analysis functions. Please check rtables::additional_fun_params for precise descriptions.


tern documentation built on April 4, 2025, 12:10 a.m.