check_arguments: Check default arguments

View source: R/misc.R

check_argumentsR Documentation

Check default arguments

Description

Check arguments and override default values. If a named list, arguments, is provided by the user, it will override any default value. If one of the argument is provided directly, it will take precedence over the values in arguments, provided it is not a default value.

Usage

check_arguments(func, call, arguments = NULL)

Arguments

func

function whose parameters are to be superseded

call

user call, obtained from match.call(expand.dots = FALSE)

arguments

named list with arguments

Value

a named list with all arguments


longevity documentation built on Nov. 12, 2023, 5:07 p.m.