This returns TRUE if x has ancestor among its parents.

env_inherits(env, ancestor)

## Arguments

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