What are the functions to download a URL list in R

2019-08-17 02:04发布

I have a URL list in R and want to download it.

However, I do not like to use download.file() as this function gives me error when my list is big (more than 500 links):

InternetOpenUrl failed: 'The operation timed out'

Here is the download list:

list_1 <- c("https://e4ftl01.cr.usgs.gov//MODV6_Cmp_A/MOLT/MOD11B3.006/2004.12.01/MOD11B3.A2004336.h18v08.006.2015240192212.hdf",
        "https://e4ftl01.cr.usgs.gov//MODV6_Cmp_A/MOLT/MOD11B3.006/2004.12.01/MOD11B3.A2004336.h19v07.006.2015240192220.hdf",
        "https://e4ftl01.cr.usgs.gov//MODV6_Cmp_A/MOLT/MOD11B3.006/2004.12.01/MOD11B3.A2004336.h19v08.006.2015240192212.hdf",
        "https://e4ftl01.cr.usgs.gov//MODV6_Cmp_A/MOLT/MOD11B3.006/2004.12.01/MOD11B3.A2004336.h18v07.006.2015240192213.hdf")

list_1

Any idea to download this list using a better function in R?

Thanks so much.

0条回答
登录 后发表回答