ripley@stats.ox.ac.uk
2003-Sep-16 13:43 UTC
[Rd] getGenerics is wrong in 1.8.0 alpha (PR#4184)
I have mentioned this several times, and it is still incorrect. So I am submitting a formal bug report. In 1.7.1 in a vanilla session> getGenerics(2)An object of class "ObjectsWithPackage": Object: "Arith" "Compare" "Complex" "Math2" "Math" "Ops" "Summary" From: "base" "base" "base" "base" "base" "base" "base" Object: "addNextMethod" "body<-" "coerce" "coerce<-" "initialize" "loadMethod" From: "methods" "base" "methods" "methods" "methods" "methods" Object: "show" From: "methods" In 1.8.0 alpha (2003-09-16)> getGenerics(2)An object of class "ObjectsWithPackage": Object: "Arith" "Compare" "Complex" "Math2" "Math" "Ops" "Summary" From: "base" "base" "base" "base" "base" "base" "base" Object: "addNextMethod" "body<-" "coerce" "coerce<-" "initialize" From: "methods" "methods" "methods" "methods" "methods" Object: "loadMethod" "show" From: "methods" "methods" body<- is incorrectly attributed to "methods", although it originates in base (whereas Compare, Complex and Math2 do not occur in base). -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Should now be consistent. One problem was that the base namespace, unlike other namespaces, does not have a .packageName object. I left this alone for now, and special-cased the base namespace in getPackageName(). John ripley@stats.ox.ac.uk wrote:> > I have mentioned this several times, and it is still incorrect. So I am > submitting a formal bug report. > > In 1.7.1 in a vanilla session > > > getGenerics(2) > An object of class "ObjectsWithPackage": > > Object: "Arith" "Compare" "Complex" "Math2" "Math" "Ops" "Summary" > From: "base" "base" "base" "base" "base" "base" "base" > > Object: "addNextMethod" "body<-" "coerce" "coerce<-" "initialize" "loadMethod" > From: "methods" "base" "methods" "methods" "methods" "methods" > > Object: "show" > From: "methods" > > In 1.8.0 alpha (2003-09-16) > > > getGenerics(2) > An object of class "ObjectsWithPackage": > > Object: "Arith" "Compare" "Complex" "Math2" "Math" "Ops" "Summary" > From: "base" "base" "base" "base" "base" "base" "base" > > Object: "addNextMethod" "body<-" "coerce" "coerce<-" "initialize" > From: "methods" "methods" "methods" "methods" "methods" > > Object: "loadMethod" "show" > From: "methods" "methods" > > body<- is incorrectly attributed to "methods", although it originates in > base (whereas Compare, Complex and Math2 do not occur in base). > > -- > Brian D. Ripley, ripley@stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel-- John M. Chambers jmc@bell-labs.com Bell Labs, Lucent Technologies office: (908)582-2681 700 Mountain Avenue, Room 2C-282 fax: (908)582-3340 Murray Hill, NJ 07974 web: http://www.cs.bell-labs.com/~jmc