[R] R2.1.0: Bug in list.files
Romain Francois
francoisromain at free.fr
Thu May 12 11:07:29 CEST 2005
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 ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
More information about the R-help
mailing list