The R Project SVN R

Rev

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

Rev 26093 Rev 33285
Line 8... Line 8...
8
\alias{elNamed}
8
\alias{elNamed}
9
\alias{el<-}
9
\alias{el<-}
10
\alias{elNamed<-}
10
\alias{elNamed<-}
11
\alias{formalArgs}
11
\alias{formalArgs}
12
\alias{Quote}
12
\alias{Quote}
13
\alias{message}
-
 
14
\alias{showDefault}
13
\alias{showDefault}
15
\alias{initMethodDispatch}
14
\alias{initMethodDispatch}
16
\title{Utility Functions for Methods and S-Plus Compatibility}
15
\title{Utility Functions for Methods and S-Plus Compatibility}
17
\description{
16
\description{
18
  These are utilities, currently in the \pkg{methods} package, that
17
  These are utilities, currently in the \pkg{methods} package, that
Line 32... Line 31...
32
 
31
 
33
formalArgs(def)
32
formalArgs(def)
34
 
33
 
35
Quote()
34
Quote()
36
 
35
 
37
message(...)
-
 
38
 
-
 
39
showDefault(object, oldMethods = TRUE)
36
showDefault(object, oldMethods = TRUE)
40
 
37
 
41
initMethodDispatch()
38
initMethodDispatch()
42
}
39
}
43
\section{Summary of Functions}{
40
\section{Summary of Functions}{
Line 47... Line 44...
47
      returns \code{NULL}).
44
      returns \code{NULL}).
48
    }
45
    }
49
    \item{\code{getFunction}:}{ 
46
    \item{\code{getFunction}:}{ 
50
      find the object as a function.
47
      find the object as a function.
51
    }
48
    }
52
  
-
 
53
    \item{\code{elNamed}:}{ 
49
    \item{\code{elNamed}:}{ 
54
      get the element of the vector corresponding to name.  Unlike the
50
      get the element of the vector corresponding to name.  Unlike the
55
      \code{[}, \code{[[}, and \code{$} operators, this function %$
51
      \code{[}, \code{[[}, and \code{$} operators, this function %$
56
      requires \code{name} to match the element name exactly (no partial
52
      requires \code{name} to match the element name exactly (no partial
57
      matching).
53
      matching).
58
    }
54
    }
59
    \item{\code{formalArgs}:}{ 
55
    \item{\code{formalArgs}:}{ 
60
      Returns the names of the formal arguments of this function.
56
      Returns the names of the formal arguments of this function.
61
    }
57
    }
62
  
-
 
63
    \item{\code{existsFunction}:}{ 
58
    \item{\code{existsFunction}:}{ 
64
      Is there a function of this name?  If \code{generic} is
59
      Is there a function of this name?  If \code{generic} is
65
      \code{FALSE}, generic functions are not counted. 
60
      \code{FALSE}, generic functions are not counted. 
66
    }
61
    }
67
  
-
 
68
    \item{\code{findFunction}:}{ 
62
    \item{\code{findFunction}:}{ 
69
      return all the indices of the search list on which a function
63
      return all the indices of the search list on which a function
70
      definition for \code{name} exists.  
64
      definition for \code{name} exists.  
71
 
65
 
72
      If \code{generic} is \code{FALSE}, ignore generic functions.
66
      If \code{generic} is \code{FALSE}, ignore generic functions.
73
    }
67
    }
74
    \item{\code{message}:}{ 
-
 
75
      Output all the arguments, pasted together with no intervening
-
 
76
      spaces.
-
 
77
    }
-
 
78
    \item{\code{showDefault}:}{ 
68
    \item{\code{showDefault}:}{ 
79
      Utility, used to enable \code{show} methods to be called by the
69
      Utility, used to enable \code{show} methods to be called by the
80
      automatic printing (via \code{print.default}).
70
      automatic printing (via \code{print.default}).
81
 
71
 
82
  { Argument \code{oldMethods} controls whether old-style print
72
      Argument \code{oldMethods} controls whether old-style print
83
    methods are used for this
73
      methods are used for this object.  It is \code{TRUE} by default
84
    object.  It is  \code{TRUE} by default if called directly, but \code{FALSE}
74
      if called directly, but \code{FALSE} when called from the
85
    when called from the \pkg{methods} package for automatic printing (to
75
      \pkg{methods} package for automatic printing (to avoid potential
86
    avoid potential recursion).
76
      recursion).
87
    }
77
    }
88
    \item{\code{initMethodDispatch}:}{
78
    \item{\code{initMethodDispatch}:}{
89
        Turn on the internal method dispatch code.  Called on
79
      Turn on the internal method dispatch code.  Called on attaching
90
        attaching the package.  Also, if dispatch has been turned off
80
      the package.  Also, if dispatch has been turned off (by calling
91
        (by calling \code{.isMethodsDispatchOn(FALSE)}---a very gutsy
81
      \code{.isMethodsDispatchOn(FALSE)}---a very gutsy thing to do),
92
        thing to do), calling this function should turn dispatch back
82
      calling this function should turn dispatch back on again.
93
        on again.
-
 
94
      }
-
 
95
    }
83
    }
96
  }
84
  }
97
}
85
}
98
\keyword{internal}
86
\keyword{internal}