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

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Aug 22 11:12:12 CEST 2013


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 file.path(tempdir(), file.name.from.url(exe_URL)) :
   could not find function "file.name.from.url"

and I do not know such a function. From its name I can guess

  basename(exe_URL)

is the base function that does the trick.

So please specify full and reproducible code that shows the error, 
including and does not contain any additional quirks like the mode="w"....


Anyway, the installer works for me downloaded with the method I 
indicated before.

Best,
Uwe Ligges




On 22.08.2013 07:23, Tal Galili wrote:
> 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, 2013 at 11:45 PM, Uwe Ligges <
> ligges at statistik.tu-dortmund.de> wrote:
>
>> Uwe
>
>
>
>
>
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list