[ESS] R function arguments tips

Frede Aakmann Tøgersen FredeA.Togersen at agrsci.dk
Mon Aug 27 09:16:33 CEST 2007


I wasn't keen on using ess-r-args-auto-show for the same reason as Dan. Just tried out Stephens suggestion on my emacsw32 version 22.0.91.1 and it seems to work. Really nice, it even catches my own functions.


Med venlig hilsen
Frede Aakmann Tøgersen
 

 

> -----Oprindelig meddelelse-----
> Fra: ess-help-bounces at stat.math.ethz.ch 
> [mailto:ess-help-bounces at stat.math.ethz.ch] På vegne af Stephen Eglen
> Sendt: 24. august 2007 19:58
> Til: Dan Davison
> Cc: ess-help at stat.math.ethz.ch
> Emne: Re: [ESS] R function arguments tips
> 
> 
> Dear Dan,
> 
>  > > This is what I thought ess-r-args-auto-show will do, but 
> I get ARGS in  > > echo area only for the first time of 
> pressing ( and a double ^M after  > > it. Then after pressing 
> ayn key echo area clears. It would be nice to  > > get ARGS, 
> whenever on is within () of a function. Maybe I want too much. 
>  >
>  > I agree with this, it would be even more useful for the 
> ARGS to  > persist until ')' closes the function call (or 
> until '(' opens a  > nested function call...). I only seem to 
> be able to remember one  > argument at a time...
> 
> What you need is ess-eldoc.el -- it is shipped with ESS 5.3.5 but not
> turned on by default, as it requires GNU Emacs 22.   If you have GNU
> Emacs 22, then add
> 
> (require 'ess-eldoc)  
> 
> to your .emacs, (e.g. after loading ess-site) and restart.  
> Visit an R buffer, and associate with a *R* process, e.g. 
> using C-c C-s
> 
> Then as you move over R function calls (and within them), you 
> should see the args list printed in the echo area.  (ELDOC 
> stands for Elisp documentation, and emacs lisp has had this 
> neat feature for many
> years.)
> 
> I'd be interested to hear from users who try ess-eldoc, and 
> who have GNU Emacs 22 running.
> 
> 
> 
> Stephen
> 
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>




More information about the ESS-help mailing list