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.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.