Prof Brian Ripley wrote:
> It would seem more logical to use x. Today it has the
> same contents as baseenv() (but a different enclosing env), but that may
> change.
>
> I do wonder why you are using this: the R code clearly doesn't. For
> base is not a normal namespace and is automatically im
It would seem more logical to use .BaseNamespaceEnv. Today it has the
same contents as baseenv() (but a different enclosing env), but that may
change.
I do wonder why you are using this: the R code clearly doesn't. For base
is not a normal namespace and is automatically imported into every ot
Hi!
>getNamespaceExports("base")
Error in ls(NULL, all = TRUE) : using 'as.environment(NULL)' is defunct
getNamespaceExports
function (ns)
{
ns <- asNamespace(ns)
if (isBaseNamespace(ns))
ls(NULL, all = TRUE)
else ls(getNamespaceInfo(ns, "exports"), all = TRUE)
}
One p