env_inherits: Does environment inherit from another environment?

View source: R/env.R

env_inheritsR 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.

ancestor

Another environment from which x might inherit.


hadley/rlang documentation built on Dec. 17, 2024, 3:26 a.m.