This R package is aimed at accessing the openaq API. OpenAQ is a community of scientists, software developers, and lovers of open environmental data who are building an open, real-time database that provides programmatic and historical access to air quality data. See their website at https://openaq.org/ and see the API documentation at https://docs.openaq.org/. The package contains 5 functions that correspond to the 5 different types of query offered by the openaq API: cities, countries, latest, locations and measurements. The package uses the
dplyr package: all output tables are data.frame (dplyr “tbl_df”) objects, that can be further processed and analysed.
Check out this blog post about OpenAQ.
Install the package with:
Or install the development version using devtools with:
If you experience trouble using the package on a Linux machine, please run
If it answers
apt-get install libcurl4-openssl-dev
And desinstall then re-install
If it still doesn’t work, please open a new issue!