UPDATE: Okay I've narrowed the problem down. Within my C routine I use the
getopt() method from . For some reason when I recall this routine
via my .Call, getopt() hasn't "refreshed" that is it still points to the end
of my parsed command line arguments. Is R keeping this function alive in
memo
Hello:
I have a general question about memory allocation. I'm having a problem
with an R function -- call it myRfunction -- that calls a C routine using
.Call. For some reason it works the first time I call it, but for every
subsequent time it doesn't. I'm thinking this has to be a memory alloc