[R] function showMethods and inheritance

Laurent Gautier laurent at cbs.dtu.dk
Tue Nov 5 15:32:41 CET 2002


Hi,

The following question might come from my (deep) misunderstanding
of the concepts in the package 'methods'.

I have a class 'A', and a class 'B' inheriting 'A' (so defined
with 'setClass' and the parameter 'contains="A"'. The class
A has a method 'mymethod'. A call to 'showMethods("mymethod")'
return the signature of the function with A, but not with B no
matter whether I specify 'inherited=TRUE' or not...

Any pointer ?

Thanks in advance,


Laurent
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list