[R] FTP download from ftp.sec.gov

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Fri Mar 2 09:16:49 CET 2007


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



More information about the R-help mailing list