pryr (version 0.1.4)

enclosing_env: 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

Run this code
# NOT RUN {
enclosing_env("plot")
enclosing_env("t.test")
# }

Run the code above in your browser using DataCamp Workspace