My understanding is that if DUP=FALSE, no copying is done in either direction.
If you want to avoid copying, the .Call interface is probably more suitable, as you pass the actual R objects to the C function. I'm not familiar with that, though. Andy > From: Shin, Daehyok [mailto:[EMAIL PROTECTED] > > Thanks, Andy. > Let me ask a little more about the DUP argument. > In the manual, I can see that only reference copy happens > when passing an > array, > if DUP=FALSE. Then, what happens when returning it in a list, > if DUP=FALSE? > Another reference copy, or deep copy? > > I am trying to implement a dynamic modeling system in R, > where some C functions should be called more than 1000 times > with arguments > of huge arrays. > So, the issue is important for better performance. > Thanks again, > > Daehyok Shin > > > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html