The R Project SVN R

Rev

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

Rev 26000 Rev 33558
Line 47... Line 47...
47
  While the programming interface for the methods package follows the
47
  While the programming interface for the methods package follows the
48
  reference, the R software is an original implementation, so details in
48
  reference, the R software is an original implementation, so details in
49
  the reference that reflect the S4 implementation may appear
49
  the reference that reflect the S4 implementation may appear
50
  differently in R.  Also, there are extensions to the programming
50
  differently in R.  Also, there are extensions to the programming
51
  interface developed more recently than the reference.  For a
51
  interface developed more recently than the reference.  For a
52
  discussion of details and ongoing development, see the web page 
52
  discussion of details and ongoing development, see the web page
53
  \url{http://developer.r-project.org/methodsPackage.html} and the
53
  \url{http://developer.r-project.org/methodsPackage.html} and the
54
  pointers from that page.
54
  pointers from that page.
55
}
55
}
56
\seealso{
56
\seealso{
57
  \link{Classes},
57
  \link{Classes},
Line 59... Line 59...
59
  \code{\link{isClass}}.
59
  \code{\link{isClass}}.
60
}
60
}
61
\examples{
61
\examples{
62
getClass("numeric") ## a built in class
62
getClass("numeric") ## a built in class
63
 
63
 
-
 
64
cld <- getClass("thisIsAnUndefinedClass", .Force = TRUE)
-
 
65
cld ## a NULL prototype
-
 
66
## If you are really curious:
64
\dontshow{
67
str(cld)
65
getClass("thisIsAnUndefinedClass", .Force = TRUE) ## returns NULL
68
## Whereas these generate errors:
66
try(getClass("thisIsAnUndefinedClass")) ## generates an error
69
try(getClass("thisIsAnUndefinedClass"))
67
try(getClassDef("thisIsAnUndefinedClass")) ## generates an error
70
try(getClassDef("thisIsAnUndefinedClass"))
68
}
-
 
69
}
71
}
70
\keyword{programming}
72
\keyword{programming}
71
\keyword{classes}
73
\keyword{classes}