@billybond: rm() removes references to the objects in the R world, but if some of these are still pointed to from a C# reference, it may not be possible to garbage collect them with gc(). Not sure about this one; Kosei may want to comment. Also, R does not have memory compaction and the effect of gc() on effective memory usage is not all that straightforward to intuit.
@billybond: the effect of "q()" is likely to be deep in the R engine, so not something we have control over.
@billybond: the effect of "q()" is likely to be deep in the R engine, so not something we have control over.