From simon.urbanek at r-project.org  Thu Mar 18 20:02:19 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 18 Mar 2010 15:02:19 -0400
Subject: [Rd] Size of object in C
In-Reply-To: <1e7471d51003181039q43a8ae9fu378f74c6f11ab020@mail.gmail.com>
References: <1e7471d51003181039q43a8ae9fu378f74c6f11ab020@mail.gmail.com>
Message-ID: <67BCCE57-C1AD-4F36-8202-E80F301A0313@r-project.org>


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

> 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() ?
>

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

Cheers,
Simon



[Rd] Size of object in C
Simon Urbanek