Skip to content
Prev 17127 / 63424 Next

object.size() bug?

On 8/5/2005 8:39 AM, Roger D. Peng wrote:
I would think so.  For those who haven't looked, this returns the size 
of the SEXP for the environment and its attributes, but does not attempt 
to work out the size of the contents of the environment.  This makes 
sense, because environments are references.  External pointers are also 
references, so their object size should be the size of the pointer 
(which is probably 28 bytes; R pointers carry a lot of baggage!), with 
no attempt to say anything about the external thing they point to.

Duncan Murdoch