| env_depth | R Documentation |
This function returns the number of environments between env and
the empty environment, including env. The depth of
env is also the number of parents of env (since the empty
environment counts as a parent).
env_depth(env)
env |
An environment. |
An integer.
The section on inheritance in env() documentation.
env_depth(empty_env())
env_depth(pkg_env("rlang"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.