powered by
This function returns the default function arguments (if any).
function_defaults(f, exclude = NULL)
A named list.
list
[function] A function.
function
[NULL | character()] Argument names to exclude.
NULL
character()
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()
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