Re: [Rd] built-in NAMED(obj) from within R

From: Benjamin Tyner <btyner_at_gmail.com>
Date: Fri, 09 Nov 2012 20:26:04 -0500

Thanks Matthew and Hadley; that is exactly what I was looking for, and them some.

Regards,
Ben

> >>/ 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
> tracemem(x)
> x[11] <- 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.
>
> Hadley
>
> --
> RStudio / Rice University
> http://had.co.nz/



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 10 Nov 2012 - 01:33:13 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 10 Nov 2012 - 02:50:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive