Skip to content
Prev 49285 / 63424 Next

Holding a large number of SEXPs in C++

Thanks again Simon. I had realised that R_NilValue didn't need
protection... I just thought it a clean way to make my initial call to
PROTECT_WITH_INDEX (which I can see now was not required since I didn't
need the calls to REPROTECT)... and I had not thought of appending to the
tail.

One final question (and hopefully I don't get to badly burnt) I cannot find
R_PreserveObject/R_ReleaseObject or SETCDR mentioned in "Writing R
Extensions". Is there anywhere for a novice like myself to find a
'complete' reference to Rs useful macros and functions, or do I just have
to read more source?

Thanks again for being so awesome,
Simon

On Tue, Nov 4, 2014 at 12:47 AM, Simon Urbanek <simon.urbanek at r-project.org>
wrote: