problems with command "download.file"
1
0
Entering edit mode
li lilingdu ▴ 450
@li-lilingdu-1884
Last seen 6.6 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20070910/ 54ffe530/attachment.pl
• 764 views
ADD COMMENT
0
Entering edit mode
Jarno Tuimala ▴ 140
@jarno-tuimala-1650
Last seen 10.3 years ago
Hi! You probably need to download the file in binary mode. Try: download.file(url="http://bloodjournal.hematologylibrary.org/cgi/repri nt/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
ADD COMMENT

Login before adding your answer.

Traffic: 424 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6