[R] Get a list of installed commands

2010-06-13 Thread Data Monkey
I'm pretty new to R, but have experience with other languages, both OO and scripting. I'm trying to add support for R to my text editor of choice and to do this I need a list of installed commands I can markup with XML. I'd then simply feed in the marked up list into my text editor's library

Re: [R] Get a list of installed commands

2010-06-13 Thread Joris Meys
Hi, Take a look at any of the R-editors, like Tinn-R, Emacs-ESS, Eclipse with StatET,... They contain lists you can use. Also the listings package of LaTeX contains a wordlist for R. Getting all installed commands out of R is not doable with a single command as far as I know. R works completely

Re: [R] Get a list of installed commands

2010-06-13 Thread Gabor Grothendieck
On Sun, Jun 13, 2010 at 3:31 AM, Data Monkey coco.datamon...@gmail.com wrote: I'm pretty new to R, but have experience with other languages, both OO and scripting. I'm trying to add support for R to my text editor of choice and to do this I need a list of installed commands I can markup

Re: [R] Get a list of installed commands

2010-06-13 Thread Data Monkey
Thanks Joris. Very helpful. I had thought of that, just curious to see if it was possible to get a fresh list in R. After reading your email I think perhaps my wording was a bit loose. I meant commands in the pre-installed packages. So basically, out of the box what commands will R recognize.

Re: [R] Get a list of installed commands

2010-06-13 Thread Henrique Dallazuanna
Try this: sapply(installed.packages()[,1], function(x)try(ls(asNamespace(x On Sun, Jun 13, 2010 at 9:30 AM, Data Monkey coco.datamon...@gmail.comwrote: Thanks Joris. Very helpful. I had thought of that, just curious to see if it was possible to get a fresh list in R. After reading your

Re: [R] Get a list of installed commands

2010-06-13 Thread David Winsemius
On Jun 13, 2010, at 3:44 PM, Henrique Dallazuanna wrote: Try this: sapply(installed.packages()[,1], function(x)try(ls(asNamespace(x You could clean that up a bit with: funlist - sapply(installed.packages()[,1], function(x)try(ls(asNamespace(x function.list -

Re: [R] Get a list of installed commands

2010-06-13 Thread Data Monkey
Enrique, That's fantastic. Thanks for that1 I got a couple of warnings but for the most part it looks like it gives what I want. Cheers. On 14/06/2010, at 5:44 AM, Henrique Dallazuanna wrote: Try this: sapply(installed.packages()[,1], function(x)try(ls(asNamespace(x On Sun, Jun 13,