Description Usage Arguments Details Value
View source: R/equal_environments.R
This function will check if two environments are equal enough to be
considered interchangeable, i.e. with regard to having them
attached to the search
-path.
1 | equal_environments(env1, env2)
|
env1 |
The first environment to investigate |
env2 |
The second environment to investigate. |
This function is mainly intended as a helper-function for
options_attach
, and its present incarnation does not go
deep into the internal hierarchy of the environments. The
procedure starts out by testing if the environments are
identical, and if not it looks into them to see if they contain
the exact same content. If the main environments contains
environments themselves, then the test will only check if these
are identical. It's possible to use an iterative algorithm,
but that would require the addition of a safeguard against
infinite recursions.
The result of this function will be either TRUE
or
FALSE
, with an attribute identical
that reveals
the result of the identical test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.