Re: [R] How to unload a package or "undo" library("package")

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon 09 Jan 2006 - 08:41:55 EST

Here are some things to try:

detach() - detach most recent attached package detach(2) - detach package which is in position 2 on search list. Same as detach()
detach("package:mypackage") - mypackage from search list search() - display search list

On 1/8/06, Aleš Žiberna <ales.ziberna@gmail.com> wrote:
> Hello!
>
> I would like to unload a package form a current R session. I tried
> datach(package:packagename), however it does not work. The reason I want to
> unload it is that I want to correct some files in the package and reinstall
> it without closing an R session.
>
> Best,
> Ales Ziberna
>
> PS: I am using R 2.1.1 on Windows XP
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jan 09 08:48:23 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:57 EST