enclosing_env: Find the environment that encloses of a function.

View source: R/enclosing.R

enclosing_envR Documentation

Find the environment that encloses of a function.

Description

This is a wrapper around environment with a consistent syntax.

Usage

enclosing_env(f)

Arguments

f

The name of a function.

Examples

enclosing_env("plot")
enclosing_env("t.test")

hadley/pryr documentation built on Jan. 5, 2024, 10:38 a.m.