Skip to content

Opening Data Via FTP

2 messages · Brett A Magill, Brian Ripley

#
Hello all,

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?

I am using R 1.5.1 on Windows 98.  

Thanks,


Brett A. Magill, Evaluator
Research, Assessment, and Evaluation
Saint Louis Public Schools
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 27 Aug 2002, Brett A Magill wrote:

            
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 at 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.