From ernest.turro at ic.ac.uk  Thu Apr 26 18:45:17 2007
From: ernest.turro at ic.ac.uk (Ernest Turro)
Date: Thu, 26 Apr 2007 17:45:17 +0100
Subject: [Rd] path autocompletion in 2.5.0
In-Reply-To: <Pine.LNX.4.64.0704261723340.23447@gannet.stats.ox.ac.uk>
References: <BBE5F8EB-510B-453C-B30B-51693899E79A@ic.ac.uk>
	<Pine.LNX.4.64.0704261723340.23447@gannet.stats.ox.ac.uk>
Message-ID: <987A5640-483B-457B-ACA5-CD104CCA5F10@ic.ac.uk>

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:

> 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:
>
>> 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
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] path autocompletion in 2.5.0
Ernest Turro