check_arguments {longevity} | R 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 |
arguments |
named list with arguments |
Value
a named list with all arguments
[Package longevity version 1.2.1 Index]