Skip to content
Prev 69600 / 398525 Next

R2.1.0: Bug in list.files

On Thu, 12 May 2005, Suresh Krishna wrote:
It finds any file name containing the substring txt beginning anywhere 
except the first letter. Now, this is exactly what *.txt used to do, so in 
that sense it is equivalent, but it probably isn't what you wanted.  The 
pattern argument to list.files isn't a Windows wildcard expression. It 
never has been a Windows wildcard expression.    It just so happens that 
".txt" is also a valid regular expression, but one that means something 
different from the Windows wildcard expression "*.txt".


 	-thomas