Skip to content
Prev 303327 / 398506 Next

pass by reference

(Offlist, as my comments are not worth bothering the list about).

I don't understand the purpose of this tirade (whose reasonableness I
make no judgment of). R is what it is. If you don't like it for
whatever reason, don't use it.

As a point of order, there are several packages that "automate" pass
by reference/pointers in R to some extent: packages ref, R.oo, and
proto are 3 that I know of, but I think there are others. My
understanding is that this tends to be computationally inefficient in
R, but I have no direct knowledge.

As you presumably already know, you can also implement this manually
through the use of environments and S3 or S4 semantics. You might also
be interested in Luke Tierney's comments on references in R:

http://homepage.stat.uiowa.edu/~luke/R/references.html

Cheers,
Bert
On Tue, Aug 14, 2012 at 2:07 AM, Jan T Kim <jttkim at googlemail.com> wrote: