~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to src/library/base/man/body.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-20 09:26:38 UTC
  • mfrom: (1.2.6 upstream)
  • mto: (2.1.32 jaunty)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20081220092638-i4p6po0hndi24ri5
* Updated to Dec 19 release candidate of R 2.8.1 expected for Dec 22

* r-doc-pdf expected to be empty due to the tex/texinfo bug below

* debian/control: Change Build-Depends: on openjdk-6-jdk to 
  'openjdk-6-jdk [!arm !hppa]' as arm and hppa do not have one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
% File src/library/base/man/body.Rd
2
2
% Part of the R package, http://www.R-project.org
3
 
% Copyright 1995-2007 R Core Development Team
 
3
% Copyright 1995-2008 R Core Development Team
4
4
% Distributed under GPL 2 or later
5
5
 
6
6
\name{body}
17
17
\arguments{
18
18
  \item{fun}{a function object, or see \sQuote{Details}.}
19
19
  \item{envir}{environment in which the function should be defined.}
20
 
  \item{value}{an expression or a list of \R expressions.}
21
 
}
22
 
\value{
23
 
  \code{body} returns the body of the function specified.
24
 
 
25
 
  The replacement form sets the body of a function to the
26
 
  expression/list on the right hand side, and (potentially) resets the
27
 
  environment of the function.
 
20
  \item{value}{an object, usually a language object: see section
 
21
    \sQuote{Value}.}
28
22
}
29
23
\details{
30
24
  For the first form, \code{fun} can be a character string
31
25
  naming the function to be manipulated, which is searched for from the
32
 
  parent environment.
33
 
  If it is not specified, the function calling \code{body} is used.
 
26
  parent environment.  If it is not specified, the function calling
 
27
  \code{body} is used.
 
28
 
 
29
  To set the value to a list call the replacement function with
 
30
  \code{value} a length-one list containing the desired value.
 
31
}
 
32
\value{
 
33
  \code{body} returns the body of the function specified.  This is
 
34
  normally a language object, most often a call to \code{\{}, but it can
 
35
  also be an object (e.g. \code{pi}) to be the return value of the function.
 
36
 
 
37
  The replacement form sets the body of a function to the
 
38
  object on the right hand side, and (potentially) resets the
 
39
  environment of the function.  If \code{value} is of class
 
40
  \code{"\link{expression}"} or a length-one list, the first
 
41
  element is used as the body.  For expressions (but not lists) any
 
42
  additional elements are ignored, with a warning.
34
43
}
35
44
\seealso{
36
45
  \code{\link{alist}},