The R Project SVN R

Rev

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

Rev 61433 Rev 62755
Line 6... Line 6...
6
\name{representation}
6
\name{representation}
7
\alias{representation}
7
\alias{representation}
8
\alias{prototype}
8
\alias{prototype}
9
\title{ Construct a Representation or a Prototype for a Class Definition}
9
\title{ Construct a Representation or a Prototype for a Class Definition}
10
\description{
10
\description{
11
  In calls to
11
  These are old utility functions  to construct, respectively
12
  \code{\link{setClass}}, these two functions construct,
12
  a list designed to represent the slots and superclasses and
13
  respectively, the \code{representation} and \code{prototype}
13
  a list of prototype specifications.  The \code{representation()}
14
  arguments.  They do various checks and handle special cases.  You're
14
  function is no longer useful, since the arguments \code{slots} and
15
  encouraged to use them when defining classes that, for
15
  \code{contains} to \code{\link{setClass}} are now recommended.
-
 
16
 
16
  example, extend other classes as a data part or have multiple
17
  The \code{prototype()} function may still be used for the
-
 
18
  corresponding argument, but a
17
  superclasses, or that combine extending a class and slots.
19
  simple list of the same arguments works as well.
18
}
20
}
19
\usage{
21
\usage{
20
representation(...)
22
representation(...)
21
prototype(...)
23
prototype(...)
22
}
24
}