[Rcpp-devel] Rcpp:wrap - any limitations for vector size?

Davor Cubranic cubranic at stat.ubc.ca
Thu Aug 9 15:16:03 CEST 2012

On 12-08-09 05:08 AM, Mathias Bader wrote:
> My question: Is there any restriction on the size of the vectors which I
> hand from C++ to R? Because during the MCMC simulation the vectors might
> become really big.

How big are we talking about? R uses 32-bit ints for indexes, which 
would be over 2 billion elements.

What is the crash message? Segmentation fault? Have you tried running 
with valgrind to check for memory allocation problems?


More information about the Rcpp-devel mailing list