[R] Only referenc copy when calling C routine?
dmurdoch at pair.com
Mon Apr 12 03:54:57 CEST 2004
On Sun, 11 Apr 2004 21:43:58 -0400, you wrote:
>For me it's just a matter of getting my hands dirty, I guess. For whatever
>reason I seem to have a mental block about the PROTECT/UNPROTECT business...
Just protect every SEXP until you don't care if it goes away. It
might be possible to skip some PROTECT calls, but PROTECT is fairly
cheap, and debugging a missing PROTECT is not!
More information about the R-help