[Rd] built-in NAMED(obj) from within R
btyner at gmail.com
Sat Nov 10 02:26:04 CET 2012
Thanks Matthew and Hadley; that is exactly what I was looking for, and them some.
> >>/ The goal is to ascertain whether a copy of an object has been made.
> />/ Then :
> />/ ?tracemem
> />/ One demonstration of using both together is here :
> />/ http://stackoverflow.com/a/10312843/403310
> Note that tracemem detects duplications (in a technical R sense), not
> copies - i.e.
> x <- 1:10
> x <- 11L
> although all the individual elements are copied, the vector is not
> duplicated. This confused me at first, so I thought I'd point it out.
> RStudio / Rice University
More information about the R-devel