The R Project SVN R

Rev

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

Rev 68948 Rev 70273
Line 18... Line 18...
18
\alias{showDefault}
18
\alias{showDefault}
19
\alias{initMethodDispatch}
19
\alias{initMethodDispatch}
20
\alias{methodSignatureMatrix}
20
\alias{methodSignatureMatrix}
21
\title{Utility Functions for Methods and S-Plus Compatibility}
21
\title{Utility Functions for Methods and S-Plus Compatibility}
22
\description{
22
\description{
23
  These are utilities, currently in the \pkg{methods} package, that
23
  These are \emph{internal} utilities, currently in the \pkg{methods}
24
  either provide some functionality needed by the package (e.g., element
24
  package, that either provide some functionality needed by the package
25
  matching by name), or add compatibility with S-Plus, or both.
25
  (e.g., element matching by name), or add compatibility with S-Plus, or both.
26
}
26
}
27
\usage{
27
\usage{
28
functionBody(fun=sys.function(sys.parent()))
28
functionBody(fun=sys.function(sys.parent()))
29
 
29
 
30
allNames(x)
30
allNames(x)
Line 35... Line 35...
35
 
35
 
36
elNamed(x, name, mustFind=FALSE)
36
elNamed(x, name, mustFind=FALSE)
37
 
37
 
38
formalArgs(def)
38
formalArgs(def)
39
 
39
 
40
Quote()
40
Quote(expr)
41
 
41
 
42
showDefault(object, oldMethods = TRUE)
42
showDefault(object, oldMethods = TRUE)
43
 
43
 
44
initMethodDispatch(where = topenv(parent.frame()))
44
initMethodDispatch(where = topenv(parent.frame()))
45
 
45
 
Line 52... Line 52...
52
      returns \code{NULL}).
52
      returns \code{NULL}).
53
    }
53
    }
54
    \item{\code{getFunction}:}{
54
    \item{\code{getFunction}:}{
55
      find the object as a function.
55
      find the object as a function.
56
    }
56
    }
-
 
57
    \item{\code{el}:}{\code{el(object, i)} is equivalent to
-
 
58
      \code{object[i][[1]]} (and should typically be replacable by object[[i]]).
-
 
59
    }
57
    \item{\code{elNamed}:}{
60
    \item{\code{elNamed}:}{
58
      get the element of the vector corresponding to name.  Unlike the
61
      get the element of the vector corresponding to name.  Unlike the
59
      \code{[}, \code{[[}, and \code{$} operators, this function %$
62
      \code{\link{[}}, \code{\link{[[}}, and \code{\link{$}} operators, this function
60
      requires \code{name} to match the element name exactly (no partial
63
      requires \code{name} to match the element name exactly (no partial
61
      matching).
64
      matching).
62
    }
65
    }
63
    \item{\code{formalArgs}:}{
66
    \item{\code{formalArgs}:}{
64
      Returns the names of the formal arguments of this function.
67
      Returns the names of the formal arguments of this function.
Line 87... Line 90...
87
      Turn on the internal method dispatch code.  Called on loading
90
      Turn on the internal method dispatch code.  Called on loading
88
      the namespace.  Also, if dispatch has been turned off (by calling
91
      the namespace.  Also, if dispatch has been turned off (by calling
89
      \code{.isMethodsDispatchOn(FALSE)}---a very gutsy thing to do),
92
      \code{.isMethodsDispatchOn(FALSE)}---a very gutsy thing to do),
90
      calling this function should turn dispatch back on again.
93
      calling this function should turn dispatch back on again.
91
    }
94
    }
92
  \item{\code{methodSignatureMatrix}:}{
95
    \item{\code{methodSignatureMatrix}:}{
93
      Returns a matrix with the contents of the specified slots as
96
      Returns a matrix with the contents of the specified slots as
94
      rows.  The slots should be named character strings of the same
97
      rows.  The slots should be named character strings of the same
95
      length.  Basically used to turn the signatures of a
98
      length.  Basically used to turn the signatures of a
96
      \code{"MethodDefinition"} object into a matrix for printing.
99
      \code{"MethodDefinition"} object into a matrix for printing.
97
    }
100
    }
-
 
101
    \item{\code{Quote}:}{is a synonym of \code{\link{quote}()} and
-
 
102
      considered deprecated.
-
 
103
    }
98
  }
104
  }
99
}
105
}
100
\keyword{internal}
106
\keyword{internal}