You can also do:

library(RCurl)
data = getBinaryURL("ftp://ftp.genome.jp/pub/kegg/pathway/map/map00020.png")
pathway = file("map00020.png","wb")
writeBin(data,pathway)
close(pathway)

Kachelo

2010/8/3 Wolfgang Huber <whuber@embl.de>

> ? download.file
>
>
> On Jul/24/10 10:47 AM, Yuan Jian wrote:
>
>> Hi,
>>
>> there is a function to show contents of an URL: browseURL
>> does anyone know how to save contents of an URL to a file?
>>
>> thanks
>>
>> jian
>>
>>
>>
>>
>>
>>        [[alternative HTML version deleted]]
>>
>>
>>
>>
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor@stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> Search the archives:
>> http://news.gmane.org/gmane.science.biology.informatics.conductor
>>
>
> --
>
>
> Wolfgang Huber
> EMBL
> http://www.embl.de/research/units/genome_biology/huber
>
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

