per the discussion of R programming styles, I saw someone once said he puts all his custom function into a new environment and attach it. I also remember R environment maybe use
To answer your second question (that you've now deleted), use ls.str, or just access the object in the environment with $:
ls.str
$
.myEnv <- new.env() .myEnv$a <- 2 a <- 1 str(a) ls.str(.myEnv, a) str(.myEnv$a)