The name of user-defined environments cannot be retrieved in base R. Examples are shown on how the envnames package is used to circumvent this problem, in addition to looking for objects defined in user-defined environments.
Very often, in our coding life, we forget one very simple yet important point to take care to: the importance of conflicts between packages.
When you load a library in best case the command line is executed with no problem. However, the console is sometimes stuffed with red messages that we often ignore, moreover when the function we need reach the desired goal.
In these days, I was talking about an R package I developed with a colleague. He used several times the word library to refer to the R package. So, I realized that many R users do not know that package and library are not synonymous when referring to R.
The "Writing R Extensions" manual is clear: "A package is not a library", although the same manual admits "this is a persistent mis-usage".