Re: [R] Get a list of installed commands

From: Data Monkey <coco.datamonkey_at_gmail.com>
Date: Mon, 14 Jun 2010 10:28:40 +1000

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, 2010 at 9:30 AM, Data Monkey <coco.datamonkey_at_gmail.com> wrote:
> 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.
>
> I had found the full reference manual for R online and parsed the table of contents into a nice XML file I could use as a possible solution.
> However, your attached file looks a bit more complete (haven't really given much thought to the reason yet). Thanks again for sending it.
>
> I'm using Coda on OS X, which is really designed for Web dev, but I like it so much I've added support for Stata and now want R. It's got Terminal bult-in, so I can invoke R through there.
> Anyway, my ultimate goal is to not only get syntax highlighting, but also autocompletion. If possible in the prediction, also get the method (where applicable) signature. Coda allows all this.
> I use this a lot when coding in PHP in Coda and C# in Visual Studio - I think Microsoft call it Intellisense or something.
>
> Cheers for the help.
>
> On 13/06/2010, at 9:47 PM, Joris Meys wrote:
>
> > 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 different than Stata; R
> > is a fullblown programming language, not a statistical program. Try to
> > find a list of all installed Perl commands for example...
> >
> > Attached is the recognition file of Tinn-R. Reserved 1 are special
> > keywords, Reserved 2 is a list of the most commonly used commands in
> > the pre-installed packages, and Reserved 3 is a list of common
> > parameters of those functions. It's submitted with Tinn-R under the
> > GNU license, so keep that in mind when using it.
> >
> > But instead of re-inventing the wheel and constructing your own
> > editor, you could take a look at one of those mentioned above. On
> > Windows, I recommend Tinn-R for daily scripting, and Eclipse for
> > developing packages and the likes. Both offer the advantage of direct
> > communication with the R console.
> >
> > Cheers
> > Joris
> >
> > On Sun, Jun 13, 2010 at 9:31 AM, Data Monkey <coco.datamonkey_at_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 with XML.
> >> I'd then simply feed in the marked up list into my text editor's library and I'm off.
> >>
> >> I've done this in Stata before using the following command:
> >> getcmds using "~/Desktop/StataCommands.txt"
> >>
> >> Does anyone know of a way to do this in R?
> >>
> >> Any pointers much appreciated.
> >>
> >> Thanks!
> >>
> >> ______________________________________________
> >> R-help_at_r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >
> >
> > --
> > Joris Meys
> > Statistical consultant
> >
> > Ghent University
> > Faculty of Bioscience Engineering
> > Department of Applied mathematics, biometrics and process control
> >
> > tel : +32 9 264 59 87
> > Joris.Meys_at_Ugent.be
> > -------------------------------
> > Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
> > <Tinn-R_recognized words.r>
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 14 Jun 2010 - 00:32:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jun 2010 - 02:50:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive