
Last chance! 50% off unlimited learning
Sale ends in
This creates a new environment containing exactly the same objects, optionally with a new parent.
env_clone(env, parent = env_parent(env))
The parent of the cloned environment.
# NOT RUN {
env <- env(!!! mtcars)
clone <- env_clone(env)
identical(env, clone)
identical(env$cyl, clone$cyl)
# }
Run the code above in your browser using DataLab