[R] read.table opening a website incl Password
roger.bos at us.rothschild.com
Wed May 16 19:32:12 CEST 2007
Chuck, Roland is trying to read from a web site instead of a ftp site.
I have also gotten this to work:
But when I try to do the same thing from the SEC's ftp site I get an
error, so beyond R, there may be some internet settings that need to be
fiddled with. Maybe I can tag onto Roland's question and ask for hints
on what configuration options are available?
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Chuck Cleland
Sent: Wednesday, May 16, 2007 1:08 PM
To: Roland Rau
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] read.table opening a website incl Password
Roland Rau wrote:
> Dear all,
> in the past I have been able to access websites with data directly.
> For example the following code works nicely
> mydata <-
> But what happens if I need a username and password (a different site)?
> How do I do that? Or is it not possible to this in R?
> I tried something like this
> mydata.frame <-
> read.table("myusr:mypswd at www.mydata.com/adir/afile.txt")
> but it did not work.
> I'd appreciate any hints.
> My platform is Win32 (and I am actually running R 2.3.1, but I guess
> (hope!) this is not the reason. At least I checked the NEWS file
> whether any changes appeared since 2.3.1 which could affect this
In what way did it not work? The following seems to work for me:
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Chuck Cleland, Ph.D.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894
R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
This message is for the named person's use only. It may
contain confidential, proprietary or legally privileged
information. No right to confidential or privileged treatment
of this message is waived or lost by any error in
transmission. If you have received this message in error,
please immediately notify the sender by e-mail,
delete the message and all copies from your system and destroy
any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message
if you are not the intended recipient.
More information about the R-help