Skip to content
Prev 47148 / 63421 Next

How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit

On 06/11/2013 11:36, Duncan Murdoch wrote:
RODBC is one example.
An example is when you want a different version of a package.  (That 
might now work and probably will not if the package does not unload its 
DLL.)
Or to put it another way, the OS will do most of the unloading when it 
terminates the process, more efficiently than the process itself can. 
That includes 'unloading' DLLs and freeing memory.