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.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 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@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.m...@ugent.be ------------------------------- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
______________________________________________ R-help@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.