Skip to content
Prev 45481 / 63421 Next

Timing of SET_VECTOR_ELT

On Apr 1, 2013, at 2:54 PM, Terry Therneau wrote:

            
Well, it's a pretty fundamental function, so if its behavior changed, the whole world would collapse ;) so if you can't rely on SET_VECTOR_ELT then I don't know what else you can rely on. Its return value is also used in R itself, so it's not an obscure use. It may look a bit scary as the upper-case may suggest it's a macro, but R-exts clarifies that it is a function so the above is ok (and it's frequently used with allocations in R itself).

Cheers,
Simon