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")

pryr documentation built on Jan. 18, 2023, 1:08 a.m.