statquant statquant - 1 year ago 76
R Question

How can I find where the package I loaded comes from

I want to programatically save some packages my script has loaded (I mean the actual directory).

I know doing

shows the paths where the packages can come from (though I could also load it from somewhere different).

Is there an already build function to get where a package that I loaded comes from ?

Answer Source

My solution would be: <- sessionInfo()

names.packages <- names($loadedOnly)


I hope this is what you are searching for.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download