Why is "url.exist" showing url does not exist wrongly for a particular url in R?

78 Views Asked by At

I am using a R package for downloading MODIS data.

It is giving error as

the http address does not exist! Version may be incorrect OR Server is down!

Interestingly version is correct, and I can excess the site which is a data repository that shows server is not down.

The URL which this R package is trying to access is 'https://e4ftl01.cr.usgs.gov/MOTA/MCD43A3.006/'

Though the URL exist, when I check it as

u = 'https://e4ftl01.cr.usgs.gov/MOTA/MCD43A3.006/'
if (!url.exists(u)) print('URL does not exist')


[1] "URL does not exist"

What could be the reason for this error?

0

There are 0 best solutions below