[R] How to unload a dll loaded via library.dynam()?

2009-02-19 Thread Alex F. Bokov
Hello. To save the hassle of quitting and restarting R every time I rebuild the package I'm working on (for the purposes of this question called roots) I would like to write a script cleanly remove the package from my R session and then load it again. Of course detach(package:roots) works for

Re: [R] How to unload a dll loaded via library.dynam()?

2009-02-19 Thread Duncan Murdoch
On 19/02/2009 6:19 PM, Alex F. Bokov wrote: Hello. To save the hassle of quitting and restarting R every time I rebuild the package I'm working on (for the purposes of this question called roots) I would like to write a script cleanly remove the package from my R session and then load it

Re: [R] How to unload a dll loaded via library.dynam()?

2009-02-19 Thread Gábor Csárdi
Hmmm, I think restarting R is not a very good solution. It is rather ugly in the first place. But perhaps even more importantly, it can be rather inconvenient if one has a large data set in the memory and needs to save/load it just to reload a package that was updated in the meanwhile. This