R: Does environment inherit from another environment?

env_inherits {rlang} | R Documentation

## Does environment inherit from another environment?

### Description

This returns `TRUE` if `x` has `ancestor` among its parents.

### Usage

    env_inherits(env, ancestor)

### Arguments

`env` | An environment or an object bundling an environment, e.g. a formula, quosure or closure.
`ancestor` | Another environment from which `x` might inherit.

[Package rlang version 0.1.6 Index]