Skip to content
Prev 31485 / 63424 Next

unloadNamespace (Was: How to unload a dll loaded via library.dynam()?)

This was rather a large shift of subject, so I've pruned the 
recipients list.

Is lazy loading involved?  If so I have an idea that may or may not be 
relevant.  We do cache in memory the lazy-loading database for speed 
on slow (network-mounted or USB drive) file systems.  Now the cache is 
flushed at least if you do detach(foo, unload = TRUE) or but I can 
envisage a set of circumstances in which it might not be.

So perhaps try detach(foo, unload = TRUE) or not using lazy-loading 
when developing the package?
On Fri, 20 Feb 2009, Berwin A Turlach wrote: