Re: [Rd] export C++ array to R

2009-04-19 Thread Simon Urbanek
On Apr 18, 2009, at 4:12 AM, whizvast wrote: Hi, I am a newbie on C++ Right now I have an array of doubles in C++. Is there a way to "export" that array into R? Of course, I can allocate the memory block first using "allocVector" and copying the array contents one by one. But, what if

[Rd] export C++ array to R

2009-04-18 Thread whizvast
Hi, I am a newbie on C++ Right now I have an array of doubles in C++. Is there a way to "export" that array into R? Of course, I can allocate the memory block first using "allocVector" and copying the array contents one by one. But, what if that array is fairly large? Copying doesn't look tha