Re: [Rd] getNamespaceExports("base") error

2007-05-15 Thread ml-it-r-devel
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

Re: [Rd] getNamespaceExports("base") error

2007-05-15 Thread Prof Brian Ripley
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

[Rd] getNamespaceExports("base") error

2007-05-15 Thread ml-it-r-devel
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