[ESS] Problem with ess tab-completion when max.print option is set too low

Martin Maechler maechler at stat.math.ethz.ch
Tue Mar 11 11:48:28 CET 2008


>>>>> "RoSp" == Rodney Sparapani <rsparapa at mcw.edu>
>>>>>     on Mon, 10 Mar 2008 14:17:03 -0500 writes:

    RoSp> Martin Maechler wrote:
    >> 
    >> Well, 'rcompgen' *is* available as part of R in any version of R
    >> since R 2.5.0 which seem ancient ... well, in my (biased) view, 
    >> 2.5.0 was released April 2007.
    >> 
    >> Martin

    RoSp> Sure, but what if you are trying to tab-complete something under S-plus?
    RoSp> Is tab-completion ESS[R] only?

No.  ESS has had completion "forever" :

In the *R* or *S* process buffer the following have been active :

  (define-key inferior-ess-mode-map "\t"       'comint-dynamic-complete)
  (define-key inferior-ess-mode-map "\C-c\t"   'ess-complete-object-name)
  (define-key inferior-ess-mode-map "\M-\t"    'comint-replace-by-expanded-filename)

Where the first one is setup to be smart, doing both object- and
file- name completion.
*AND* object completion also works with slots of S4 objects
or named components of lists, e.g. try

   op <- options
   op$
      ^ [Tabulator]

I don't recall the small drawbacks we have seen with ESS-builtin
completion.

One thing mentioned is the smart distinction between object-name
(of S/R objects) completion and file name completion, that both work
(mostly) ... but not under Windows it seems.

Martin




More information about the ESS-help mailing list