davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
299 stars 113 forks source link

importMeta(source = "AURN") couldn't resolve host name. #179

Closed airqualityanthony closed 5 years ago

airqualityanthony commented 5 years ago

importMeta(source = "AURN") trying URL 'http://uk-air.defra.gov.uk/openair/R_data/AURN_metadata.RData' Error in download.file(fileName, method = "libcurl", destfile = tmp) : cannot open URL 'http://uk-air.defra.gov.uk/openair/R_data/AURN_metadata.RData' In addition: Warning message: In download.file(fileName, method = "libcurl", destfile = tmp) : URL 'http://uk-air.defra.gov.uk/openair/R_data/AURN_metadata.RData': status was 'Couldn't resolve host name'

davidcarslaw commented 5 years ago

This might be a local problem due to institutional computer issues e.g. firewall. If you click on any of the links above, does it download a file? It does for me.

Also, does the command below work? It should download a data frame called AURN_metadata

load(url("http://uk-air.defra.gov.uk/openair/R_data/AURN_metadata.RData"))

airqualityanthony commented 5 years ago

It does download a file. Must be a firewall issues, on a work network!

load(url("http://uk-air.defra.gov.uk/openair/R_data/AURN_metadata.RData")) does work, when i run fix(AURN_metadata) it exists.

I'll try again at home, and confirm if importMeta(source = "AURN") has an issue.

As an aside, importMeta(source = "KCL") works fine.

airqualityanthony commented 5 years ago

Worked on home network!