| Line 44... |
Line 44... |
| 44 |
A call to \code{\link{selectSuperClasses}(cl)} returns a list of
|
44 |
A call to \code{\link{selectSuperClasses}(cl)} returns a list of
|
| 45 |
superclasses, similarly to
|
45 |
superclasses, similarly to
|
| 46 |
\code{extends(cl)}. Additional arguments restrict the class names
|
46 |
\code{extends(cl)}. Additional arguments restrict the class names
|
| 47 |
returned to direct superclasses and/or to non-virtual classes.
|
47 |
returned to direct superclasses and/or to non-virtual classes.
|
| 48 |
|
48 |
|
| - |
|
49 |
Either way, programming with the result, particularly using
|
| - |
|
50 |
\code{\link{sapply}}, can be useful.
|
| 49 |
|
51 |
|
| 50 |
To find superclasses with more generally defined properties, one can program
|
52 |
To find superclasses with more generally defined properties, one can program
|
| 51 |
with the result returned by \code{extends} when called with one
|
53 |
with the result returned by \code{extends} when called with one
|
| 52 |
class as argument.
|
54 |
class as argument.
|
| 53 |
By default, the call returns a character vector including the name of the class
|
55 |
By default, the call returns a character vector including the name of the class
|