vadr (version 0.01)

env2dots: Convert an environment into a ... object, without forcing promises.

Description

All bindings in the environment will be copied into a new ... list. Bindings that are promises will be added to the ... list without forcing, while other bindings will be wrapped in an already-evaluated promise. If `...` exists in the environment, all bindings it contains will be added to the ... list. The output will not be in any particular order.

Usage

env2dots(envir, include_missing = FALSE)

Arguments

envir
An environment.
include_missing
Whether to include "missing" bindings in the dotslist.

Value

A dots object.