 I would use RCurl.

 if you have, for example, the url of an ftp site you can merely do a
getURL() and the contents will be returned. That call will return data that
can be coerced into a data.frame that will look like a directory structure
listing the file names.

If you need code just ask, but the RCurl docs are pretty good.



On Tue, Nov 30, 2010 at 8:10 AM, Baoqiang Cao <bqcaomail@gmail.com> wrote:

> Hi,
>
> I'd like to download some data files from a remote server, the problem
> here is that some of the files actually don't exist, which I don't
> know before try. Just wondering if a function in R could tell me if a
> file exists on a remote server? I searched this mailing list and after
> read severals mails, still clueless.  Any help will be highly
> appreciated.
>
> B.C.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

