Clone an environment
This creates a new environment containing exactly the same objects, optionally with a new parent.
env_clone(env, parent = env_parent(env))
env |
An environment. |
parent |
The parent of the cloned environment. |
env <- env(!!! mtcars) clone <- env_clone(env) identical(env, clone) identical(env$cyl, clone$cyl)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.