[R] test if files in current folder

Vladimir Eremeev wl2776 at gmail.com
Thu Jun 14 13:24:36 CEST 2007




runner wrote:
> 
> I want to test if the files are already in my current folder before I
> download or copy from somewhere else. What's in my mind is to check if a
> file is open-able in current folder. Is there a way to do this, like in
> Perl: 
> if (open()) { do sth}?
> 
> To put it another way, how to extract all file names in a folder to an
> array or list? 
> 

?files
?dir

BTW, Perl has nice -X functions, which allow file testing without explicit
opening:
 http://perldoc.perl.org/functions/-X.html
-- 
View this message in context: http://www.nabble.com/test-if-files-in-current-folder-tf3919587.html#a11118347
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list