Dear all, Could somebody please explain what the following conflict is about? best mahmood R> conflicts(detail=TRUE) $"package:methods" [1] "body<-" $"package:base" [1] "body<-" R> PS: I send an earlier mail yesterday on this subject that was definitly not clear, therefore I try again. http://www.ne.su.se/~ma
What is there to explain? body<- is defined in two places, and if methods is attached, its version takes precedence (and allows S4 methods to be set). End of story. On Thu, 30 Oct 2003, Mahmood ARAI wrote:> Dear all, > > Could somebody please explain what the following conflict is about? > > best > mahmood > > R> conflicts(detail=TRUE) > > $"package:methods" > [1] "body<-" > > $"package:base" > [1] "body<-" > > R> > > PS: I send an earlier mail yesterday on this subject > that was definitly not clear, therefore I try again.-- Brian D. Ripley, ripley at 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
Mahmood ARAI wrote:> > Dear all, > > Could somebody please explain what the following conflict is about? > > best > mahmood > > R> conflicts(detail=TRUE) > > $"package:methods" > [1] "body<-" > > $"package:base" > [1] "body<-" >The version on the methods package is a generic function: There are some special methods defined in the package for assigning the body of special classes of functions. The version on the base package is not a generic. It's possible that in the future conflicts() might not report a generic vs a non-generic version of the same function, if they were compatible. John Chambers.> R> > > PS: I send an earlier mail yesterday on this subject > that was definitly not clear, therefore I try again. > > > > http://www.ne.su.se/~ma > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help