<div dir="ltr">That's valid, Dirk. I will check how far I can make it work first. thanks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 10, 2014 at 11:53 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 10 April 2014 at 11:34, ricky l wrote:<br>
| I use Rcpp::RawVector to allow sending any type of R data-set through<br>
| network socket after serializing the input data.<br>
| As I use Rcpp::RawVector, I notice that the "size" data type of the<br>
| class is defined as int, and I got an error when the input raw byte<br>
| size is larger than MAX_INT - the error message: "long vectors not<br>
| supported yet:" Any one has suggestions when I want to process a raw<br>
| object size that is larger than MAX_INT? thanks,<br>
<br>
</div>With R 3.0.0, these limits internal to R moved beyond this int barrier.  It<br>
is entirely possibly that our end has not yet adjusted.<br>
<br>
If you actually have such a machine with that much RAM, I'd welcome tests<br>
from your end :)   It should be reasonably straightforward to dive into the<br>
code and relax that restriction by going from MAX_INT to the double type and<br>
the limit R now uses (which AFAICR is 2^35 rather than 2^31 but I may be off).<br>
But I'd be more comfortable making such a change if it was properly tested.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span></blockquote></div><br></div>