[R] "unload" a library while testing?

Ista Zahn izahn at psych.rochester.edu
Wed Oct 5 15:18:18 CEST 2011


Hi Rainer,

On Wed, Oct 5, 2011 at 9:04 AM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> Hi
>
> I am testing a package, and after I make changes, I have to close R and open
> R again to load the new version (same version number) of the package I am
> working on. So my question:
>
> is there a function which removes a package, i.e
>
> library(myPackage)
>
>> Package is loaded
> unlibrary(myPackage)

The function is 'detach(package:<package_to_unlibrary>)', possibly
with the unload option.

Best,
Ista

>
>> package is not loaded any more
>
> Thanks,
>
> Rainer
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
> UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :       +33 - (0)9 53 10 27 44
> Cell:       +33 - (0)6 85 62 59 98
> Fax (F):       +33 - (0)9 58 10 27 44
>
> Fax (D):    +49 - (0)3 21 21 25 22 44
>
> email:      Rainer at krugs.de
>
> Skype:      RMkrug
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org



More information about the R-help mailing list