[R] What command lists everything in a package?
David Winsemius
dwinsemius at comcast.net
Fri Jul 3 19:40:59 CEST 2009
On Jul 3, 2009, at 1:21 PM, Mark Knecht wrote:
> Hi,
> Two easy questions I'm sure.
>
> snipped as already answered
> 2) Related to the above, how do I tell what packages are currently
> loaded at any given time so that I don't waste time loading things
> that are already loaded? search() tells me what's available, but
> what's loaded? The best I can find so far goes like this:
>
>> a<-.packages(all.available = FALSE)
>> a
> [1] "zoo" "stats" "graphics" "grDevices" "utils"
> "datasets"
> [7] "methods" "base"
What's wrong with using sessionInfo() ?
...or if you want (a lot) more information about the non-base packages
try:
sessionInfo()$otherPkgs
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list