[R] R/C++ interfaces: documentation for SET_STRING_ELT, PROTECT, etc...

Franckx Laurent laurent.franckx at vito.be
Fri Jun 8 16:40:47 CEST 2012


Dear all,

I am reading C++ code that is called in an R package. It is not clear to me what SET_STRING_ELT, getAttrib, etc exactly do.

I understand that these are macros that have been declared in Rinternals.h and who are used for the correct "translation" of the R data structures, but I have not found their definition, and it is not clear to me what they do to their inputs and what type of output they generate precisely.

I have consulted several resources ("Writing R extensions", Gentleman's "R programming for bioinformatics", Chamber's "Software for Data Analysis"), who do mention these macros, but the discussion remains very general (and too general for me to understand the code that I am deciphering).

I have not found a description on CRAN either. Does anybody know an accessible documentation  that could help me forward?


Laurent Franckx, PhD
VITO NV
Boeretang 200, 2400 MOL, Belgium
Tel. + 32 14 33 58 22
Skype: laurent.franckx
laurent.franckx at vito.be







http://www.vito.be/e-maildisclaimer



More information about the R-help mailing list