From mdowle at mdowle.plus.com  Fri Nov  9 13:04:44 2012
From: mdowle at mdowle.plus.com (Matthew Dowle)
Date: Fri, 9 Nov 2012 12:04:44 +0000
Subject: [Rd] built-in NAMED(obj) from within R
References: <509C7CD1.7080105@gmail.com>
Message-ID: <loom.20121109T125440-643@post.gmane.org>

Benjamin Tyner <btyner <at> 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 of an object has been made.

Then :

    ?tracemem

One demonstration of using both together is here :

    http://stackoverflow.com/a/10312843/403310

Matthew



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