assignInMyNamespace is intended to be called from functions
within a package, and chooses the namespace as the environment of the
function calling it.
The namespace can be specified in several ways. Using, for example,
ns = "stats" is the most direct, but a loaded package can be
specified via any of the methods used for
can also be the environment printed as
getFromNamespace is similar to (but predates) the
::: operator: it is more flexible in how the namespace
edit on the object named
x and assigns the revised object in place of the original
object. For compatibility with
x can be unquoted.