The R Project SVN R

Rev

Rev 71548 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/methods/man/methods-package.Rd
68948 ripley 2
% Part of the R package, https://www.R-project.org
59039 ripley 3
% Copyright 1995-2007 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
34650 murdoch 6
\name{methods-package}
56186 murdoch 7
\alias{methods-package}
34628 murdoch 8
\docType{package}
9
\title{
10
Formal Methods and Classes
11
}
12
\description{
13
Formally defined methods and classes for R objects, plus
39360 jmc 14
other programming tools, as described in the references.
34628 murdoch 15
}
16
\details{
71366 jmc 17
  This package provides the \dQuote{S4} or \dQuote{S version 4}
42963 ripley 18
  approach to methods and classes in a functional language.
34628 murdoch 19
 
71366 jmc 20
  For basic use of the techniques, start with \link{Introduction} and
21
  follow the links there to the key functions for programming, notably
71548 jmc 22
  \code{\link{setClass}} and \code{\link{setMethod}}.
45824 jmc 23
 
71548 jmc 24
  Some specific topics:
71366 jmc 25
 
71548 jmc 26
\describe{
27
    \item{Classes:}{ Creating one, see \code{\link{setClass}};
28
        examining definitions, see \code{\link{getClassDef}} and
29
        \linkS4class{classRepresentation}; inheritance and coercing,
30
      see \code{\link{is}} and \code{\link{as}}
31
      }
32
 
33
  \item{Generic functions:}{  Basic programming, see
34
      \code{\link{setGeneric}}; the class of objects, see
35
      \linkS4class{genericFunction}; other functions to examine or
36
      manipulate them, see \link{GenericFunctions}.
37
      }
38
   \item{S3:}{Using classes, see \code{\link{setOldClass}}; methods,
39
       see \link{Methods_for_S3}.
40
     }
41
     \item{Reference classes:}{See \link{ReferenceClasses}.
42
         }
43
    \item{Class unions; virtual classes}{See \code{\link{setClassUnion}}.
44
         }
45
 
46
}
47
These pages will have additional links to related topics.
48
 
42963 ripley 49
  For a complete
50
  list of functions and classes, use \code{library(help="methods")}.
34628 murdoch 51
}
52
 
53
\references{
88585 hornik 54
  \bibshow{R:Chambers:2016}
55
  (Chapters 9 and 10.)
71366 jmc 56
 
88585 hornik 57
  \bibshow{R:Chambers:2008}
58
  (Chapter 10 has some additional details.)
34628 murdoch 59
}
60
\author{
59039 ripley 61
R Core Team
34628 murdoch 62
 
63
Maintainer: R Core Team \email{R-core@r-project.org}
64
}
65
\keyword{ package }
66
\keyword{ methods }