Learn R Programming

cmdfun (version 1.0.2)

cmd_args_all: Return all named arguments and arguments passed as dots from parent function call

Description

Return all named arguments and arguments passed as dots from parent function call

Usage

cmd_args_all(keep = NULL, drop = NULL)

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 arguments passed to parent

Examples

Run this code
# NOT RUN {
theFunction <- function(arg1, ...) { cmd_args_all() }
theArgs <-  theFunction(arg1 = "test", example = "hello")
# }

Run the code above in your browser using DataLab