> So, if you download the same file using a web browser it works, ehe? > Then look at the file size and you'll most likely find that it is > different from when you use R code. Conclusion? Something is > different and it works in the web browser so you might tell R to do > something different from what you would expect. Hint, look at the set > of arguments download.file() takes. > > That's my $0.02 > > Henrik > >
After using the argument mode="wb", the downloaded file is OK. Thank you very much for your comments, Henrik. I've got no real idea of what the "mode="wb"" argument means, so if someone could give an explanation, or a reference, I'd be most grateful. Best Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 address:Essingetorget 40,112 66 Stockholm, SE skype:gustaf_rydevik ______________________________________________ R-help@r-project.org 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.