This function returns the default function arguments (if any).
function_defaults(f, exclude = NULL)
A named list
.
[function
]
A function
.
[NULL
| character()
]
Argument names to exclude.
Can be NULL
(default) to not exclude any argument names.
Other function helpers:
do.call_timed()
,
function_arguments()
,
function_body()
,
quiet()
,
timed()
,
try_silent()
,
variable_name()
f <- function(a, b = 1, c = "", ...) { }
function_defaults(f)
function_defaults(f, exclude = "b")
Run the code above in your browser using DataLab