R: Pretty-print an environment

env_print {rlang} | R Documentation

## Pretty-print an environment

### Description

This prints:

- The label and the parent label.

- Whether the environment is locked.

- The bindings in the environment (up to 20 bindings). They are printed succintly using `pillar::type_sum()` (if available, otherwise uses an internal version of that generic). In addition fancy bindings (actives and promises) are indicated as such.

- Locked bindings get a `[L]` tag

### Usage

    env_print(env = caller_env())

### Arguments

`env` | An environment, or object that can be converted to an environment by `get_env()`.

[Package rlang version 0.4.1 Index]