I've noticed that many of the base R packages have an .onUnload()
function which automatically unloads compiled shared libraries
with library.dynam.unload(). For example:
stats:::.onUnload
function (libpath)
library.dynam.unload(stats, libpath)
bytecode: 0x1033b9c30
environment: namespace:stats
On 24/07/2012 07:11, Winston Chang wrote:
I've noticed that many of the base R packages have an .onUnload()
function which automatically unloads compiled shared libraries
with library.dynam.unload(). For example:
stats:::.onUnload
function (libpath)
library.dynam.unload(stats, libpath)