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

2012-11-09 Thread Simon Urbanek
On Nov 9, 2012, at 9:46 PM, Hadley Wickham wrote: > On Friday, November 9, 2012, Simon Urbanek wrote: > > On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: > > >>> The goal is to ascertain whether a copy of an object has been made. > >> > >> Then : > >> > >>?tracemem > >> > >> One demonstrat

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

2012-11-09 Thread Hadley Wickham
On Friday, November 9, 2012, Simon Urbanek wrote: > > On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: > > >>> 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

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

2012-11-09 Thread Simon Urbanek
On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: >>> 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 detect

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

2012-11-09 Thread Benjamin Tyner
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://stackoverflo

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

2012-11-09 Thread Hadley Wickham
>> 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:

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

2012-11-09 Thread Matthew Dowle
Benjamin Tyner gmail.com> writes: > > Hello, > > Is it possible to retrieve the 'named' field within the header (sxpinfo) > of a object, without resorting to a debugger, external code, etc? And much more than just NAMED : .Internal(inspect(x)) > The goal is to ascertain whether a copy

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

2012-11-09 Thread Benjamin Tyner
Hello, Is it possible to retrieve the 'named' field within the header (sxpinfo) of a object, without resorting to a debugger, external code, etc? In other words is there a built-in equivalent to the "getnamed" subroutine described here: http://tolstoy.newcastle.edu.au/R/e2/devel/07/09/4496.h