[Rd] Access to integer value of BUILTINSXP/SPECIALSXP

Saptarshi Guha saptarshi.guha at gmail.com
Sat Sep 12 22:23:22 CEST 2009


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
>
>
>



More information about the R-devel mailing list