Dear all,


I want to let R automatically download available files from a website in
certain folders. Since the files I need, if exist, are in a certain
directory, I used download.file() function with a predesigned directory.
However, some of the folders do not have the file I want. When this occurs,
my program returns error and terminates. So I wonder if there is any way
that I can check if a directory exists before downloading that file. I
appreciate your help!



Thanks!

Wendy

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to