From rpeng at jhsph.edu  Fri Apr 13 19:53:46 2007
From: rpeng at jhsph.edu (Roger Peng)
Date: Fri, 13 Apr 2007 13:53:46 -0400
Subject: [Rd] directory/filename completion
Message-ID: <461FC3AA.9010204@jhsph.edu>

I've noticed something recently in R-beta that has changed since R 2.4.1 
and I'm not sure if it's a readline problem or an R problem.  I am on a 
Linux FC5 system and in R 2.4.1 I could do

load("my-directory/

and then hit TAB and it would list all of the files in 'my-directory', 
after which I could start typing the beginning of the file, hit TAB 
again, and it would complete the file name along with adding the closing 
double quote.

In R-beta, when I try the same thing, nothing happens (i.e. no directory 
listing and no file name completion).  Specifically, if I type

load("my

and then it TAB, it will complete the 'my-directory' but it will not 
look further into the files inside of 'my-directory'.

Also, I've noticed that if I rename 'my-directory' to 'mydirectory' (so 
no dash), everything works fine (just like in R 2.4.1).

Has anyone else noticed this?

-roger
-- 
Roger D. Peng  |  http://www.biostat.jhsph.edu/~rpeng/



[Rd] directory/filename completion
Roger Peng