function_arguments {oeli}R Documentation

Get function arguments

Description

This function returns the names of function arguments.

Usage

function_arguments(f, with_default = TRUE, with_ellipsis = TRUE)

Arguments

f

A function.

with_default

Either TRUE to include function arguments that have default values, or FALSE else.

with_ellipsis

Either TRUE to include the "..." argument if present, or FALSE else.

Value

A character vector.

Examples

f <- function(a, b = 1, c = "", ...) { }
function_arguments(f)
function_arguments(f, with_default = FALSE)
function_arguments(f, with_ellipsis = FALSE)


[Package oeli version 0.4.1 Index]