Re: [R] What command lists everything in a package?

2009-07-05 Thread hadley wickham
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: Loading something a second time

Re: [R] What command lists everything in a package?

2009-07-05 Thread Barry Rowlingson
On Sun, Jul 5, 2009 at 3:40 PM, hadley wickhamh.wick...@gmail.com wrote: 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

[R] What command lists everything in a package?

2009-07-03 Thread Mark Knecht
Hi, Two easy questions I'm sure. 1) As an example if I use the code require(zoo) then once it's loaded is there a command that lists everything that zoo provides so that I can study the package? Certainly help(zoo) gives me some clues about what zoo does but I'd like a list. Maybe

Re: [R] What command lists everything in a package?

2009-07-03 Thread Gabor Grothendieck
library(help = zoo) will list all the help files and, at the bottom, all the vignettes. It does not list demos so to get those you have to issue a second command: demo(package = zoo) On Fri, Jul 3, 2009 at 1:21 PM, Mark Knechtmarkkne...@gmail.com wrote: Hi,   Two easy questions I'm sure. 1)

Re: [R] What command lists everything in a package?

2009-07-03 Thread Duncan Murdoch
On 7/3/2009 1:21 PM, Mark Knecht wrote: Hi, Two easy questions I'm sure. 1) As an example if I use the code require(zoo) then once it's loaded is there a command that lists everything that zoo provides so that I can study the package? ls(package:zoo) will list all the exported items in

Re: [R] What command lists everything in a package?

2009-07-03 Thread David Winsemius
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

Re: [R] What command lists everything in a package?

2009-07-03 Thread Henrique Dallazuanna
To see all functions in a package: library(zoo) ls(package:zoo) On Fri, Jul 3, 2009 at 2:21 PM, Mark Knecht markkne...@gmail.com wrote: Hi, Two easy questions I'm sure. 1) As an example if I use the code require(zoo) then once it's loaded is there a command that lists everything that

Re: [R] What command lists everything in a package?

2009-07-03 Thread Mark Knecht
Thanks to everyone for your answers. They were great and I think I have what I was looking for. Cheers, Mark On 7/3/09, Duncan Murdoch murd...@stats.uwo.ca wrote: On 7/3/2009 1:21 PM, Mark Knecht wrote: Hi, Two easy questions I'm sure. 1) As an example if I use the code

Re: [R] What command lists everything in a package?

2009-07-03 Thread Philippe Grosjean
If you want a quick overview of a package (not just the name of the objects), you can also do: library(help = zoo) Duncan Murdoch wrote: On 7/3/2009 1:21 PM, Mark Knecht wrote: Hi, Two easy questions I'm sure. 1) As an example if I use the code require(zoo) then once it's loaded is