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 reference?
Staring at gc() is at approximate at best. R has memory profiling, see Writing R Extensions for how to use it. There is no code in your post, so not much else I can comment on. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel