The R Project SVN R

Rev

Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 71228
Line 1... Line 1...
1
% File src/library/methods/man/isSealedMethod.Rd
1
% File src/library/methods/man/isSealedMethod.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 1995-2007 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{isSealedMethod}
6
\name{isSealedMethod}
7
\alias{isSealedMethod}
7
\alias{isSealedMethod}
8
\alias{isSealedClass}
8
\alias{isSealedClass}
Line 63... Line 63...
63
\examples{
63
\examples{
64
## these are both TRUE
64
## these are both TRUE
65
isSealedMethod("+", c("numeric", "character"))
65
isSealedMethod("+", c("numeric", "character"))
66
isSealedClass("matrix")
66
isSealedClass("matrix")
67
 
67
 
68
setClass("track",
-
 
69
            representation(x="numeric", y="numeric"))
68
setClass("track", slots = c(x="numeric", y="numeric"))
70
## but this is FALSE
69
## but this is FALSE
71
isSealedClass("track")
70
isSealedClass("track")
72
## and so is this
71
## and so is this
73
isSealedClass("A Name for an undefined Class")
72
isSealedClass("A Name for an undefined Class")
74
## and so are these, because only one of the two arguments is basic
73
## and so are these, because only one of the two arguments is basic