[R] Opening connection to FTP site

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Tue Nov 30 14:25:16 CET 2004


Is it possible to open a connection to an FTP site such that I can read
the directory listing?  Eg:

URL <- url("ftp://ftp.ensembl.org", open="r")
Error in url("ftp://ftp.ensembl.org", open="r") :
	unable to open connection

URL <- url("ftp://ftp.ensembl.org")
Error in open.connection(URL) : unable to open connection

I think perhaps it is because there isn't actually a file there to
connect to, eg this works fine:

URL <- url("ftp://ftp.ensembl.org/pub/README", open="r")

Thanks in advance


More information about the R-help mailing list