Learn R Programming

longevity (version 1.2.1)

check_arguments: 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)

Value

a named list with all arguments

Arguments

func

function whose parameters are to be superseded

call

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

arguments

named list with arguments