cmd_args_named: Return all named arguments from parent function call

Description Usage Arguments Value Examples

View source: R/cmd_args.R

Description

Return all named arguments from parent function call

Usage

1

Arguments

keep

name of arguments to keep

drop

name of arguments to drop (NOTE: keep or drop are mutually exclusive settings)

Value

named list of all defined function arguments from parent

Examples

1
2
theFunction <- function(arg1, ...) { cmd_args_named() }
theNamedArgs <-  theFunction(arg1 = "test", example = "hello")

snystrom/dotargs documentation built on Oct. 18, 2020, 8:39 a.m.