The R Project SVN R

Rev

Rev 74459 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74459 Rev 80296
Line 1... Line 1...
1
% File src/library/methods/man/inheritedSlotNames.Rd
1
% File src/library/methods/man/inheritedSlotNames.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 2009-2018 R Core Team
3
% Copyright 2009-2021 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{inheritedSlotNames}
6
\name{inheritedSlotNames}
7
\alias{inheritedSlotNames}
7
\alias{inheritedSlotNames}
8
\title{Names of Slots Inherited From a Super Class}
8
\title{Names of Slots Inherited From a Super Class}
Line 31... Line 31...
31
\examples{
31
\examples{
32
.srch <- search()
32
.srch <- search()
33
library(stats4)
33
library(stats4)
34
inheritedSlotNames("mle")
34
inheritedSlotNames("mle")
35
 
35
 
36
if(require("Matrix")) withAutoprint({
36
if(require("Matrix", quietly = TRUE)) withAutoprint({
37
  inheritedSlotNames("Matrix")       # NULL
37
  inheritedSlotNames("Matrix")       # NULL
38
  ## whereas
38
  ## whereas
39
  inheritedSlotNames("sparseMatrix") # --> Dim & Dimnames
39
  inheritedSlotNames("sparseMatrix") # --> Dim & Dimnames
40
  ##  i.e. inherited from "Matrix" class
40
  ##  i.e. inherited from "Matrix" class
41
  cl <- getClass("dgCMatrix")        # six slots, etc
41
  cl <- getClass("dgCMatrix")        # six slots, etc