[R] FTP download from ftp.sec.gov

Bos, Roger roger.bos at us.rothschild.com
Fri Mar 2 13:36:42 CET 2007


Thanks to everyone for trying it out.  I guess the part that surprises me is that I currently download a file from a different FTP site every night with no problem.  I have also downloaded from web sites with no problem.  Buy now that I know the R code is okay I can look into other fixes for the problems.  Thanks again, Roger


-----Original Message-----
From: Peter Dalgaard [mailto:P.Dalgaard at biostat.ku.dk] 
Sent: Friday, March 02, 2007 3:17 AM
To: Gabor Grothendieck
Cc: Bos, Roger; r-help at stat.math.ethz.ch
Subject: Re: [R] FTP download from ftp.sec.gov

Gabor Grothendieck wrote:
> On Windows XP it worked for me on both 2.4.1 and 2.5.0.  I did notice 
> that on 2.4.1 it says "using Synchronous WinInet calls" but does not 
> say this on 2.5.0.  See below for the two transcripts.
>
>   
>> ftp <- "ftp://anonymous:test@ftp.sec.gov/edgar/full-index/company.idx"
>> download.file(url=ftp, destfile="test.txt")
>>     
> trying URL 'ftp://anonymous:test@ftp.sec.gov/edgar/full-index/company.idx'
> using Synchronous WinInet calls
> opened URL
> downloaded 33930Kb
>   
This appears to be highly system dependent. Works for me on my home machine using Fedora 6, but not on the office machine running SUSE 10. I wouldn't be surprised if firewall configuration plays a part.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



********************************************************************** * 
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 mailing list