[Rd] Using .onUnload to unload DLLs

2012-07-24 Thread Winston Chang
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

Re: [Rd] Using .onUnload to unload DLLs

2012-07-24 Thread Prof Brian Ripley
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)