extract_dots {rando}R Documentation

Extract the ellipsis inside a function

Description

Allow the named entries in ... to be used easily within a function by attaching them to the function's environment

Usage

extract_dots()

Value

No return value, called for it's side effect

Examples


f <- function(...) {
  a + b
}

## Not run: 
# Throws an error because a and b are trapped inside `...`
 f(a = 1, b = 2)

## End(Not run)

f <- function(...) {
  extract_dots()
  a + b
}
f(a = 1, b = 2)


[Package rando version 0.2.0 Index]