[R] Opening Data Via FTP

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Aug 27 21:38:21 CEST 2002


On Tue, 27 Aug 2002, Brett A Magill wrote:

> I am trying to read a table in via ftp, something like this:
>
>   read.table("ftp://ftp.the.file.com/the/directory/file.txt")
>
> The trouble with that is, our ftp server is picky and wants my username
and password.  Oh, bother.  My question:  Is there a way to send user/pass
and read the file into R?

Yes.

It's pretty standard

ftp://user:pass@ftp.the.file.com/the/directory/file.txt

and that works in R (or used to).

I suggest use --internet2 and however you would do this in Internet
Explorer.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list