get_dots()
unpacks ...
from a given environment and returns a
dots object.
set_dots
takes a dots list and uses it to create a binding for
...
in a given environment.
Usage
get_dots(env = caller(environment()), inherits = FALSE)
set_dots(env, d, append = FALSE)
Arguments
- env
The environment to look in.
- inherits
Whether to pull
...
from enclosing environments.- d
a
[dots]
object.- append
if TRUE, the values should be appended to the existing binding. If false, existing binding for "..." will be replaced.
Value
get_dots
returns a dots list. If ...
is not bound or
is missing, it returns an empty dots list.
set_dots
returns the updated environment, invisibly.