Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-22 Thread Uwe Ligges
Tal, please quote the whole message! I had to look for the original one now. And then I found that code was not reproducible for me: exe_URL = 'http://pandoc.googlecode.com/files/pandoc-1.11.1.msi' exe_filename - file.path(tempdir(), file.name.from.url(exe_URL)) Error in

Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-22 Thread Tal Galili
Dear Uwe, Here is the updated code and error massage I get: exe_URL = 'http://pandoc.googlecode.com/files/pandoc-1.11.1.msi' exe_filename - file.path(tempdir(), basename(exe_URL)) download.file(exe_URL, destfile = exe_filename, mode = wb, method= internal) # ### Error massage: trying

Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-22 Thread Tal Galili
Quick update - I think most of the problem is resolved. After more checks (following Uwe comments): 1) I see that the installer file runs properly when I set mode='wb', and fails when mode='w' (so that solves why some of the time the installer didn't run) 2) I still get the error massage mentioned

Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-22 Thread Uwe Ligges
On 22.08.2013 19:52, Tal Galili wrote: Dear Uwe, Here is the updated code and error massage I get: exe_URL = 'http://pandoc.googlecode.com/files/pandoc-1.11.1.msi' exe_filename - file.path(tempdir(), basename(exe_URL)) download.file(exe_URL, destfile = exe_filename, mode = wb, method=

Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-21 Thread Uwe Ligges
On 21.08.2013 22:35, Tal Galili wrote: Dear R-help mailing list memebers, I encountered the following error, and I'd be happy for ideas on how to fix it: # using R 3.0.1 on Windows 7: exe_URL = 'http://pandoc.googlecode.com/files/pandoc-1.11.1.msi' exe_filename - file.path(tempdir(),

Re: [R] download.file error - corrupt: Can't read SAT; charset=binary'

2013-08-21 Thread Tal Galili
Dear Uwe, My apologies - my original code had mode=wb, which also *does not* work and produce the errors I've mentioned in the previous e-mail. The code I pasted had mode =w, since that is one of the versions I've played with (which also does not work). With regards, Tal On Wed, Aug 21,