Re: [R] R2.1.0: Bug in list.files

From: Romain Francois <francoisromain_at_free.fr>
Date: Thu 12 May 2005 - 19:07:29 EST

Le 12.05.2005 10:48, Suresh Krishna a écrit :

>
> Is that the entire story ? I tried this with yesterday's patched
> version (windows xp) and found:
>
> > list.files(getwd(),"*.txt",full=T)
> Error in list.files(path, pattern, all.files, full.names, recursive) :
> invalid 'pattern' regular expression
>
> > list.files(getwd(),'.txt',full=T)
> [1] "C:/Documents and Settings/suresh/BDE_SysInfo.txt"
> [2] "C:/Documents and Settings/suresh/dxva_sig.txt"
>
> Replacing "*.txt" with '*.txt' seems to do "something".
>
> -s.

Well, that's not what you did exactlty, without the * in the first call, the result would have been the same.

Romain

-- 
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
~~~~~~      Romain FRANCOIS - http://addictedtor.free.fr         ~~~~~~
~~~~        Etudiant  ISUP - CS3 - Industrie et Services           ~~~~
~~                http://www.isup.cicrp.jussieu.fr/                  ~~
~~~~           Stagiaire INRIA Futurs - Equipe SELECT              ~~~~
~~~~~~   http://www.inria.fr/recherche/equipes/select.fr.html    ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu May 12 19:19:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:44 EST