[R] Writing lgrindefs

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Apr 27 09:21:17 CEST 2000


Kjetil Kjernsmo:
> I'm writing a lgrind definition for R. Lgrind is a program to produce
> pretty program listings for inclusion in LaTeX documents. Does anybody
> here have any experience with lgrindefs?
>
> [...]
>
> Then, about the keywords: The keywords I now have are snatched from
> ess-vars.el (a thank you is due to Tony! :-) ). I was thinking about,
> however, having all the functions defined in base highlighted as keywords.
> Would that be a good idea, and if it is, how can I extract the function
> names most easily?

1. You get a list of objects (not only functions!!!) by typing
    ls(env=environment("R_GlobalEnv"))

2. In the html-help files, e.g. the "Functions" index could help you.
   Attention: Not only functions are listed here!

3. For my R-WinEdt "package", I extracted names of functions of many R
packages. 
   If you want, I will send some files.
 
> Other ideas?
> 
> I think lgrind is very nice in producing pretty code for LaTeX documents,
> so I hope someone is interested in joining me in producing a good
> definition file.

Cool!!! Would be really useful!!!

Uwe Ligges

PS:
Maybe R-devel is the better forum to discuss this?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list