I would like to ask if it is possible to copy/move all the objects of one environment to another, at once. For example:
f1 <- function() { print(v1)
Try this:
f2 <- function() { v1 <- 1 v2 <- 2 environment(f1) <<- environment() }