search for: r_useintern

Displaying 2 results from an estimated 2 matches for "r_useintern".

2009 Sep 12
1
Access to integer value of BUILTINSXP/SPECIALSXP
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
2008 Mar 31
1
(PR#11054) "Writing R Extensions": bad example with CAR
...fined. Further, I assumed that the proper way for extensions to set car values is to write "SETCAR(a,b)", while R internal code, compiled with USE_RINTERNALS, may use "CAR(a)=b", which expands to the more efficient macro. Now, you say that this should have nothing to do with R_USEINTERNALS, and that the code snippet in the manual should compile without it as well. This leaves me confused. Should the code in the manual really compile without setting any compiler options? If so, what obvious point am I overlooking? Best regards Simon Anders +--- | Dr. Simon Anders, Dipl....