Re: [Rd] Passing a large array to .Call by reference

2014-01-14 Thread Boris Aronshtam
] Passing a large array to .Call by reference On 14 January 2014 at 02:02, Boris Aronshtam wrote: | I need to pass a large array to my C function. I am using .Call(). I can clearly see according to the memory consumption (reported by gc()) that the array is duplicated. Is there a way to avoid this

Re: [Rd] Passing a large array to .Call by reference

2014-01-13 Thread Dirk Eddelbuettel
On 14 January 2014 at 02:02, Boris Aronshtam wrote: | I need to pass a large array to my C function. I am using .Call(). I can clearly see according to the memory consumption (reported by gc()) that the array is duplicated. Is there a way to avoid this duplication and pass the array by referenc