[R] tab complete for R under ESS

S.McClatchie s.mcclatchie at niwa.cri.nz
Thu May 2 23:56:55 CEST 2002


> System info:
> R Version 1.4.1  (2002-01-30) on Windows 2000
> ESS v. 5.1.20 using emacs ver. 21.1.1

Colleagues

Some time ago I asked about tab complete functionality for R under 
ESS on windows. I never got it working as well as I might have liked until 
today. It is still slow the first time while all the environments are checked 
but after that it works well. 

The solution below might usefully go in the R-tips 
<http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html>.

**** Please note: credit goes to my colleague, Michael Manning, not to 
me, especially if you do put this in R-tips *****

Here is the fix, in Martin's words:
------------------------------------
The lines you need to change are in the file "ess-inf.el".  You should
be able to find this file inside the lisp directory inside your ess
directory, e.g.

"c:\Program Files\XEmacs\xemacs-packages\lisp\ess-5.1.21\lisp"

You need to replace the line (comment out with ;;;)

"(ess-command (format inferior-ess-load-command filename) 
errbuffer)" 

with the lines

"(ess-command (format inferior-ess-load-command
                    (let ((directory-sep-char ?/))
                    (expand-file-name filename)))
                    errbuffer)"

and things should be sweet.  NOTE: this works for ESS 5.1.21 or 5.1.20 
(and R 1.4.1)  under the win32 port of XEmacs 21.4.1.  It also works for  
GNU Emacs as the problem is in ESS, not (X)Emacs.
-------------------------------

Sam

Sam McClatchie, 
Research scientist (fisheries acoustics))))))))))
http://www.smcc.150m.com/
NIWA (National Institute of Water & Atmospheric Research Ltd)
Postal address: PO Box 14 901, Kilbirnie, Wellington, New Zealand. 
Street address: 301 Evans Bay Parade, Greta Point, 6003 Wellington, New Zealand.
phone 64-04-386-0300, FAX: 64-4-386 0574. 
                   /\
      ...>><xX(°> // \\
                 /// \\\   
                //// \\\\
               ///  <°)Xx><<
              /////  \\\\\\
        ><(((°>   
  >><(((°>   ...>><xX(°>O<°)Xx><<

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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