From saptarshi.guha at gmail.com  Sat Sep 12 22:23:22 2009
From: saptarshi.guha at gmail.com (Saptarshi Guha)
Date: Sat, 12 Sep 2009 16:23:22 -0400
Subject: [Rd] Access to integer value of BUILTINSXP/SPECIALSXP
In-Reply-To: <27ABB3ED-C083-46F2-8DA4-953B7D990A7D@gmail.com>
References: <27ABB3ED-C083-46F2-8DA4-953B7D990A7D@gmail.com>
Message-ID: <1e7471d50909121323r47d6df57s4b23a8198004f951@mail.gmail.com>

After some reading, what i really need is something to give access to
PRIMNAME(obj).
Setting #define R_USEINTERNALS doesn't work and i'd rather not use
internals. Is the some exposed api call to get PRIMNAME?

Thank you
Saptarshi


On Sat, Sep 12, 2009 at 2:08 PM, Saptarshi Guha
<saptarshi.guha at gmail.com> wrote:
> Hello,
> For the BUILTINSXP and SPECIALSXP types, the R Internals page documents
>
> "An integer giving the offset into the table of primitives/.Internals. "
>
> What macro gives me the value of this integer? I guess something like this
> would work
> had R_USEINTERNALS been defined
> v->u.primsxp.offset
> (where v is a SEXP of either of the above types).
>
> What is the portable version?
>
> Thank you
> Saptarshi
>
>
>



[Rd] Access to integer value of BUILTINSXP/SPECIALSXP
Saptarshi Guha