Permalink
Browse files

it is *replacement* function

git-svn-id: https://svn.r-project.org/R/trunk@54333 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
1 parent 195c35c commit f2528fa3df9c6098523c9663a6199490e0fe4d9e ripley committed Feb 11, 2011
Showing with 15 additions and 15 deletions.
  1. +2 −2 OONEWS
  2. +1 −1 doc/NEWS.Rd
  3. +3 −3 doc/manual/R-exts.texi
  4. +1 −1 doc/manual/R-lang.texi
  5. +7 −7 src/main/eval.c
  6. +1 −1 src/main/memory.c
View
4 OONEWS
@@ -6022,7 +6022,7 @@ UTILITIES
previously in package base, as well as the following new ones:
- checkAssignFuns() for checking whether the final argument of
- assignment functions in a package is named `value'.
+ replacement functions in a package is named `value'.
- checkDocArgs() for checking whether all arguments shown in
\usage of Rd files are documented in the corresponding
@@ -6040,7 +6040,7 @@ UTILITIES
package DESCRIPTION file. It also tests for syntax errors in
the R code, whether all methods in the code have all arguments
of the corresponding generic, for arguments shown in \usage but
- not documented in \arguments, and whether assignment functions
+ not documented in \arguments, and whether replacement functions
have their final argument named `value'.
View
@@ -83,7 +83,7 @@
spreadsheet intended for Windows or Mac OS X Excel).
\item Assignment expressions of the form \code{foo::bar(x) <- y}
- and \code{foo:::bar(x) <- y} now work; the assignment functions
+ and \code{foo:::bar(x) <- y} now work; the replacement functions
used are \code{foo::`bar<-`} and \code{foo:::`bar<-`}.
\item \code{Sys.getenv()} gains a \code{names} argument so
View
@@ -1837,9 +1837,9 @@ details on the document format. Package vignettes found in directory
@file{inst/doc} are tested by @code{R CMD check} by executing all @R{}
code chunks they contain to ensure consistency between code and
documentation. (Code chunks with option @code{eval=FALSE} are not
-tested.) The @R{} working directory for all vignette tests in @code{R
+tested.) The @R{} working directory for all vignette tests in @code{R
CMD check} is the @emph{installed} version of the @file{doc}
-subdirectory. Make sure all files needed by the vignette (data sets,
+subdirectory. Make sure all files needed by the vignette (data sets,
@dots{}) are accessible by either placing them in the @file{inst/doc}
hierarchy of the source package, or using calls to @code{system.file()}.
@@ -7697,7 +7697,7 @@ code making the modification to do the duplication, even if it is
The case @code{NAMED(foo) == 1} allows some optimization, but it can be
ignored (and duplication done whenever @code{NAMED(foo) > 0}). (This
optimization is not currently usable in user code.) It is intended
-for use within assignment functions. Suppose we used
+for use within replacement functions. Suppose we used
@example
x <- 1:10
View
@@ -4406,7 +4406,7 @@ are generally accessed via @code{get} and @code{assign}, although they
can also be represented by text strings in some limited circumstances
when there is no ambiguity (e.g.@: @code{"x" <- 1}). As @code{get} and
@code{assign} are not restricted to names that are identifiers they do
-not recognise subscripting operators or assignment functions. The
+not recognise subscripting operators or replacement functions. The
following pairs are @emph{not} equivalent
@findex get
@findex assign
View
@@ -1,7 +1,7 @@
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995, 1996 Robert Gentleman and Ross Ihaka
- * Copyright (C) 1998--2009 The R Development Core Team.
+ * Copyright (C) 1998--2011 The R Development Core Team.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -403,7 +403,7 @@ SEXP eval(SEXP e, SEXP rho)
tmp = e;
/* Make sure constants in expressions are NAMED before being
used as values. Setting NAMED to 2 makes sure weird calls
- to assignment functions won't modify constants in
+ to replacement functions won't modify constants in
expressions. */
if (NAMED(tmp) != 2) SET_NAMED(tmp, 2);
break;
@@ -457,9 +457,9 @@ SEXP eval(SEXP e, SEXP rho)
complex assignment expression created in applydefine(). If
the RHS value is freshly created it will have NAMED = 0 and
we want it to stay that way or a BUILTIN or SPECIAL
- assignment function might have to duplicate the value
+ replacement function might have to duplicate the value
before inserting it to avoid creating cycles. (Closure
- assignment functions will get the value via the SYMSXP case
+ replacement functions will get the value via the SYMSXP case
from evaluating their 'value' argument so the value will
end up getting duplicated if NAMED = 2.) LT */
break;
@@ -1585,15 +1585,15 @@ static SEXP applydefine(SEXP call, SEXP op, SEXP args, SEXP rho)
then removed by the inner one. This could be addressed by
using multiple temporaries or using a promise for this
variable as is done for the RHS. Printing of the
- assignment function call in error messages might then need
+ replacement function call in error messages might then need
to be adjusted.
With assignments of the form f(g(x, z), y) <- w the value
of 'z' will be computed twice, once for a call to g(x, z)
- and once for the call to the assignment function g<-. It
+ and once for the call to the replacement function g<-. It
might be possible to address this by using promises.
Using more temporaries would not work as it would mess up
- assignment functions that use substitute and/or
+ replacement functions that use substitute and/or
nonstandard evaluation (and there are packages that do
that -- igraph is one).
View
@@ -2921,7 +2921,7 @@ DL_FUNC R_ExternalPtrAddrFn(SEXP s)
/* The following functions are replacements for the accessor macros.
They are used by code that does not have direct access to the
- internal representation of objects. The assignment functions
+ internal representation of objects. The replacement functions
implement the write barrier. */
/* General Cons Cell Attributes */

0 comments on commit f2528fa

Please sign in to comment.