[R] unloading loaded packages

James W. MacDonald jmacdon at med.umich.edu
Thu Apr 30 21:11:57 CEST 2009


See the seventh example under ?library.

If the masked package has a namespace you can access functions via the 
'::' operator. Say the function foo in package bar was masked by package 
baz, and bar has a namespace. You can access foo thusly:

bar::foo()

Best,

Jim



Jim Bouldin wrote:
> I can't seem to find info on how to unload packages that have been loaded.
>  My goal in doing so is to gain access to functions that have been masked
> out by those packages.  Or is there another way to do so?  Thanks in advance.
> 
> 
> 
> Jim Bouldin, PhD
> Research Ecologist
> Department of Plant Sciences, UC Davis
> Davis CA, 95616
> 530-554-1740
> 
> ______________________________________________
> 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.

-- 
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826




More information about the R-help mailing list