The R Project SVN R

Rev

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

Rev 7313 Rev 24322
Line 10... Line 10...
10
These functions provide the base mechanisms for defining
10
These functions provide the base mechanisms for defining
11
new functions in the \R language.
11
new functions in the \R language.
12
}
12
}
13
\arguments{
13
\arguments{
14
    \item{arglist}{Empty or one or more name or name=expression terms.}
14
    \item{arglist}{Empty or one or more name or name=expression terms.}
15
    \item{value}{An expression, or a series of expressions separated
15
    \item{value}{An expression, or a series of non-empty expressions separated
16
        by commas.}
16
        by commas.}
17
}
17
}
18
\details{
18
\details{
19
    In \R (unlike S) the names in an argument list cannot be quoted
19
    In \R (unlike S) the names in an argument list cannot be quoted
20
    non-standard names.
20
    non-standard names.
21
 
21
 
-
 
22
    If \code{value} is missing, \code{NULL} is returned.  If it is a
-
 
23
    single expression, the value of the evaluated expression is returned.
-
 
24
 
22
    If \code{value} is a series of expressions, the value returned is a
25
    If \code{value} is a series of non-empty expressions, the value
23
    list of the evaluated expressions, with names set to the expressions
26
    returned is a list of the evaluated expressions, with names set to
24
    where these are the names of \R objects.
27
    the expressions where these are the names of \R objects. That is,
-
 
28
    \code{a=foo()} names the list component \code{a} and gives it value
-
 
29
    the result of evaluating \code{foo()}.
-
 
30
 
25
}
31
}
26
\seealso{
32
\seealso{
27
  \code{\link{args}} and \code{\link{body}} for accessing the arguments
33
  \code{\link{args}} and \code{\link{body}} for accessing the arguments
28
  and body of a function.
34
  and body of a function.
29
 
35