Skip to content
Prev 49370 / 63424 Next

How to maintain memory in R extension

On Wed, Nov 12, 2014 at 10:20 AM, Martin Morgan <mtmorgan at fredhutch.org> wrote:
A small but important addition: Make sure your registered finalizer
also works, or at least don't core dump R, if your package (or one of
its dependencies) happens be unloaded by the time the garbage
collector runs.  This task seems easy but can be quite tricky, e.g.
should you reload you package temporarily and what are the side
effects from doing that?

/Henrik