function_defaults {oeli}R Documentation

Get default function arguments

Description

This function returns the default function arguments (if any).

Usage

function_defaults(f, exclude = NULL)

Arguments

f

A function.

exclude

A character of argument names to exclude. Can be NULL (default) to not exclude any argument names.

Value

A named list.

Examples

f <- function(a, b = 1, c = "", ...) { }
function_defaults(f)
function_defaults(f, exclude = "b")


[Package oeli version 0.5.2 Index]