Skip to content

Library control

3 messages · David Arnold, michael.weylandt at gmail.com (R. Michael Weylandt, David Winsemius

#
All,

1. Is there a command that tells you what libraries are loaded?

2. How do you remove a library that has been loaded?

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?

David.



--
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.
They are called packages, not libraries.
On Jul 21, 2012, at 5:19 PM, darnold <dwarnold45 at suddenlink.net> wrote:

            
Loaded is a fluid idea** in a namespace world, but search() will let you know what's on the search path (accessible to you)
detach() can do it, but there might be lingering effects. The only true way is to restart your session.
Not exactly, but take a look at conflicts() and the :: operator. 

Michael

**Well, loading is a particular step in the package management process, but probably not what you are thinking of.
3 days later
#
On Jul 21, 2012, at 3:35 PM, R. Michael Weylandt wrote:

            
There is also unloadNamespace() which may be more complete, although I  
do not think complete sanity is guaranteed.