R Package to access Open Government Data from India.
This package provides easy access to the API provided by Open Government Data Platform - India to download datasets from R. Here's the list of Datasets available through API.
.Renviron file as OGDINDIA_API_KEY (preferred). For more info see ?ogdindia_api_key. You can also refer to "Appendix: API key best practices" for httr package on cran for an example on how to set a global variable in .Renviron file.This package is currently available on github, you can install the latest development version as follows:
library(devtools)
devtools::install_github("steadyfish/ogdindiar")
If you intend to build the vignette yourself, you'll first need to set the OGDINDIA_API_KEY as shown in Prerequisite section above. You can then install the package as follows:
library(devtools)
devtools::install_github("steadyfish/ogdindiar", build_vignettes = TRUE)
For usage, check out these vignettes - Introduction and Search functionality. Otherwise, you can run the following, if you have installed the package with build_vignettes = TRUE option -
vignette("basic-usage-vignette")
vignette("search-functionality")
Encouragement and support from Leo Lahti from rOpenGov made the package development a lot easier.