Skip to content

Size of object in C

2 messages · Saptarshi Guha, Simon Urbanek

#
Hello,
Is there a function(in R's C API), given a SEXP, that computes the
size in bytes, i.e. a C equivalent of object.size() ?

Thank you
Saptarshi
#
On Mar 18, 2010, at 13:39 , Saptarshi Guha wrote:

            
No. But eval(LCONS(install("object.size"), list1(x)), R_GlobalEnv);  
isn't that long ... ;)

Cheers,
Simon