Skip to content

path autocompletion in 2.5.0

4 messages · Brian Ripley, Hin-Tak Leung, Ernest Turro

#
Hi,

R 2.5.0 isn't auto-completing paths properly as it used to. E.g.  
suppose I have:

 > dir("CEL/choe")
[1] "chipC-rep1.CEL" "chipC-rep2.CEL" "chipC-rep3.CEL" "chipS-rep1.CEL"
[5] "chipS-rep2.CEL" "chipS-rep3.CEL"

Now if I do:

ReadAffy("CEL/choe/ch<tab> # => ReadAffy("CEL/choe/chip
ReadAffy("CEL/choe/chipC<tab> # => ReadAffy("CEL/choe/chipC-rep
ReadAffy("CEL/choe/chipC-rep1<tab> # Nothing happens.

in 2.4.1 that final line auto-completes properly to:

ReadAffy("CEL/choe/chipC-rep1.CEL"

Cheers,

Ernest
#
Did you actually look at the NEWS file?

     o	The Unix-alike readline terminal interface now does
 	command-completion for R objects, incorporating the
 	functionality formerly in package 'rcompletion' by Deepayan
 	Sarkar.  This can be disabled by setting the environment
 	variable R_COMPLETION=FALSE when starting R (e.g. in
 	~/.Renviron).  (Note that when this is enabled, filename
 	completion no longer works for file paths containing R
 	operators such as '+' and '-'.)

What 'properly' means is of course a matter of taste, but I am very 
surprised that you posted such a comment about something highlighted under 
USER-VISIBLE CHANGES as a configurable option.

R-devel has an option to fine-tune this behaviour.
On Thu, 26 Apr 2007, Ernest Turro wrote:

            

  
    
#
Read release note of 2.5.0. It is mentioned there.
Ernest Turro wrote:
#
Apologies for missing that in NEWS.

Apart  for auto-completion breaking for paths with '-', this sounds  
very convenient.

E
On 26 Apr 2007, at 17:30, Prof Brian Ripley wrote: