[Rd] getNamespaceExports("base") error

From: <ml-it-r-devel_at_epigenomics.com>
Date: Tue, 15 May 2007 13:51:40 +0200

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)
}
<environment: namespace:base>

One possible way to fix this could be to changed to e.g.

if (isBaseNamespace(ns))

   ls(envir=baseenv(), all = TRUE)

Observed with
R 2.5.0 & R 2.6.0 devel (2007-05-12 r41546) (one has to go back to R 2.3.1 to see it working)

Regards,

   Matthias

-- 
Matthias Burger                     Project Manager/ Biostatistician
Epigenomics AG    Kleine Praesidentenstr. 1    10178 Berlin, Germany
phone:+49-30-24345-371                          fax:+49-30-24345-555
http://www.epigenomics.com           matthias.burger@epigenomics.com
--
Epigenomics AG Berlin           Amtsgericht Charlottenburg HRB 75861
Vorstand:   Geert Nygaard (CEO/Vorsitzender),  Dr. Kurt Berlin (CSO)
               Oliver Schacht PhD (CFO),  Christian Piepenbrock (COO)
Aufsichtsrat:   Prof. Dr. Dr. hc. Rolf Krebs (Chairman/Vorsitzender)

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 15 May 2007 - 11:54:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 13:33:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.