search for: completeclassdefinition

Displaying 2 results from an estimated 2 matches for "completeclassdefinition".

2011 May 30
1
Query super- and subclasses of a class: is there a better way than to use 'completeClassDefinition()'
...ed the function 'completeClassDef()' in order to see the super- and subclasses of a certain class: setClass(Class="A", representation=list(a="numeric")) setClass(Class="B", contains="A", representation=list(b="character")) # Super x <- completeClassDefinition("B") attributes(x) names(x@contains) # Sub x <- completeClassDefinition("A") attributes(x) names(x@subclasses) This also does the trick for Reference Classes for me. However, I re-read the respective section on the help page and wondered if I should be more careful about u...
2004 Jun 18
0
Problem with setValidity() or resetClass() or ... ?
...ot;) , but as I got no answer I tried to figure out what's happening. Well, setValidity() behaves not as I would expect (something about the superclasses is lost, but nothing about the subclasses, see code below) So, I did some debugging and it seems to be caused by resetClass() which calls completeClassDefinition() which calls ... (see the example code and the explanations below) Unfortunately, I couldn't really figure out which of the called methods is doing the "wrong thing". Would someone explain me this? Best regards, Matthias ########################################## ## Example co...