A copy of all objects and attributes within an environment. If deep=TRUE,
all objects inside of x, including other environments, will also be deeply "cloned".
The global and base environments will not be cloned.
clone(x, deep = FALSE, ...)clone_attributes(x, deep = FALSE, cloned = NULL)
environment of class "Instance"
logical for whether clone should be applied to all objects.
arguments passed to methods
environment containing references to environments that have already been cloned. This is passed to internal methods when deep=TRUE and should not be set directly.
environment of class "Instance"
clone_attributes: Clone the attributes of an object.