[BioC] problems with command "download.file"

Jarno Tuimala jtuimala at csc.fi
Mon Sep 10 10:24:31 CEST 2007


Hi!

You probably need to download the file in binary mode. Try:

download.file(url="http://bloodjournal.hematologylibrary.org/cgi/reprint/102/7/2345.pdf",destfile="dest.pdf", mode="wb")

Regards,
Jarno



On Mon, 10 Sep 2007, Li Lingdu wrote:

> Hello R-gurus,
>
> I am using R command "download.file" to download some PDF format files from
> internet,
> command might like this:
>
> download.file(url="
> http://bloodjournal.hematologylibrary.org/cgi/reprint/102/7/2345.pdf
> ",destfile="dest.pdf")
>
>
> however,the downloadef PDF file is blank, what's happen? Any suggestions
> would be greatly
> appreciated!
>
>
> PS. while I use perl command like below work well and the downloaded PDF
> file contain right contents.
>
> lwp-download
> http://bloodjournal.hematologylibrary.org/cgi/reprint/102/7/2345.pdf
> dest.pdf
>
>
> Luzifer
> ---
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>

-----------------------------------------------------------------------------
Jarno Tuimala, FT, bioinformatiikan asiantuntija, CSC, PL 405, 02101 Espoo 
puh.: (09) 457 2226, fax: (09) 457 2302, s-posti: jarno.tuimala at csc.fi
CSC on tieteen tietotekniikan keskus, http://www.csc.fi/molbio

Jarno Tuimala, PhD, bioinformatics, CSC, P.O.Box 405, FI-02101 Espoo, Finland 
tel.: +358 9 457 2226, fax: +358 9 457 2302, e-mail: jarno.tuimala at csc.fi
CSC is the Finnish IT Center for Science, http://www.csc.fi/molbio



More information about the Bioconductor mailing list