env_clone

0th

Percentile

Clone an environment.

This creates a new environment containing exactly the same objects, optionally with a new parent.

Usage
env_clone(x, parent = env_parent(x))
Arguments
x
An environment to clone.
parent
The parent of the cloned environment.
Aliases
  • env_clone
Examples
env <- new_env(data = mtcars)
clone <- env_clone(env)
identical(env$cyl, clone$cyl)
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.