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>


I've noticed that many other packages don't do this. Is it considered good
practice to do this in packages that have compiled code?

-Winston

	[[alternative HTML version deleted]]

