Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.31.0208272033340.26594-100000@gannet.stats>
Date: 2002-08-27T19:38:21Z
From: Brian Ripley
Subject: Opening Data Via FTP
In-Reply-To: <20458245FA51654B8BDE6B4EFF7B519401061719@EXCHANGE1.slps.SLPSROOT.ORG>

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


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