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:[EMAIL PROTECTED] 
Sent: Friday, March 02, 2007 3:17 AM
To: Gabor Grothendieck
Cc: Bos, Roger; [email protected]
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:[EMAIL PROTECTED]/edgar/full-index/company.idx"
>> download.file(url=ftp, destfile="test.txt")
>>     
> trying URL 'ftp://anonymous:[EMAIL PROTECTED]/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
~~~~~~~~~~ - ([EMAIL PROTECTED])                  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.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to