rlang (version 0.0.0.9000)

frame_dots: Extract dots

Description

frame_dots() extracts dots from a frame and dots() extracts dots from its arguments. The _lsp() versions return a pairlist that is ready to be spliced into a call, while the regular versions return a regular list that is usually easier to work with.

Usage

frame_dots(frame = NULL)
frame_dots_lsp(frame = NULL)
dots(...)
dots_lsp(...)

Arguments

frame
The environment from which the dots should be retrieved. Can be a frame, an environment, or a formula from which to retrieve an environment. If not supplied, the calling frame is used.
...
Arguments to extract. Can be both forwarded dots and direct arguments.

Details

frame_dots() and frame_dots_lsp() never fail, even if the frame does not contain dots. Instead they return an empty list or NULL respectively.