[R] Library control
R. Michael Weylandt <firstname.lastname@example.org>
michael.weylandt at gmail.com
Sun Jul 22 00:35:41 CEST 2012
They are called packages, not libraries.
On Jul 21, 2012, at 5:19 PM, darnold <dwarnold45 at suddenlink.net> wrote:
> 1. Is there a command that tells you what libraries are loaded?
Loaded is a fluid idea** in a namespace world, but search() will let you know what's on the search path (accessible to you)
> 2. How do you remove a library that has been loaded?
detach() can do it, but there might be lingering effects. The only true way is to restart your session.
> 3. If you have loaded a library that masks previously loaded objects, how
> can you tell which object is being run? In Matlab, I would run "which f" to
> determine the location of the file f that will be run. Is there a similar
> procedure in R?
Not exactly, but take a look at conflicts() and the :: operator.
**Well, loading is a particular step in the package management process, but probably not what you are thinking of.
> View this message in context: http://r.789695.n4.nabble.com/Library-control-tp4637327.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help