R: Browse environments

env_browse {rlang} | R Documentation

## Browse environments

### Description

- `env_browse(env)` is equivalent to evaluating `browser()` in `env`. It persistently sets the environment for step-debugging. Supply `value = FALSE` to disable browsing.

- `env_is_browsed()` is a predicate that inspects whether an environment is being browsed.

### Usage

    env_browse(env, value = TRUE)

    env_is_browsed(env)

### Arguments

`env` | An environment.
`value` | Whether to browse `env`.

### Value

`env_browse()` returns the previous value of `env_is_browsed()` (a logical), invisibly.

[Package rlang version 1.0.2 Index]