[R] Unload a library

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Aug 19 19:05:41 CEST 2005


On Fri, 19 Aug 2005, Uwe Ligges wrote:

> Talita Perciano Costa Leite wrote:
>
>> Hi people,
>>
>> I'm developing an application (in Linux) using tcltk and calling ggobi 
>> from that application (using the Rggobi package). After I load ggobi 
>> and want to use the windows made by tcltk I get some errors and 
>> sometimes R cracks. I believe the problem is because the packages 
>> Rggobi, RGtk and tcltk are running together. I thought about a solution 
>> that would be unload the Rggobi and RGtk packages after I use them. Do 
>> you know how I do that? And if someone has another solution for that 
>> problem please help me.
>
> See ?detach

In principle, yes. However, as all these applications make use of the 
event loop hooks, please check that they do undo their effects.  I don't 
see any signs of that in either Rggobi or RGtk (they would need a 
.Last.lib to do it): but I could have overlooked something.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list