r-autoyas is a small ESS complement. It provides automatically created yasnippets for R function argument lists.
Watch the demo screencast: http://www.youtube.com/watch?v=jLJPorf2LBE (Old version! The key bindings have changed and there are more features now.)
Matthew Fidler has continued development. Get his version here:
For more information see README.org at the above address.
- since 2011: More fixes or improvements by Matthew.
- 2011-06-09: A partial fix for noweb (Rnw). By Matthew.
- 2011-06-08: Bugfix for complex language statements like reshape. By Matthew.
- 2011-05-20: Bugfixes and more options, see the changelog in r-autoyas.el. By Matthew.
- 2011-05-15: Much improved version by Matthew Fidler. My lisp knowledge is far to limited to even understand it, but as Matthew's version is much improved I decided to only make available his version. It is unlikely that I will continue to develop r-autoyas. You can still send me code for improvement and I will try to update this page.
- 2011-04-04: Renamed R functions, now starting with a dot, in order to hide them, e.g. from rm(list=ls()) .
- 2011-04-04: Improvements as contributed by Vitalie Spinu (Thanks!): package, i.e. easier and non-redundant loading in emacs. Works better with recursive snippets. Improved R code injection.
- 2011-03-13: New feature: replaces "..." in argument list by user defined list. See example for options()[["r.autoyas.dotreplace"]] below. Note that former argument funname is now called funcname.
- 2011-03-13: Several changes with many thanks to Vitalie Spinu for excelent ideas and code! The used R function is now provided by r-autoyas.el directly, i.e. no need to edit .Rprofile. There is now a second argument no-paren to r-autoyas-expand: set it to t for easier usage with skeleton-pair. C-g works, i.e. no other key binding necessary. Arguments with no defaults are treated like those with defaults. Default methods of functions are used if they exist, e.g. plot.default instead of plot. Plus minor changes.
- 2011-03-10: First release by Sven Hartenstein.