R Package to access Open Government Data from India.
- To use this package to download data from Open Government Data Platform - India, you'll first need to signup on the portal and obtain an API key. (API key is a 32 characters long hexadecimal string).
- You can either set it as a temporary global variable or a permanent global variable.
- Temporary variable approach: when you make your first API call you'll be asked to provide this API key.
- Permanent variable approach: You can permanently store this key in your
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
This package is currently available on github, you can install the latest development version as follows:
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)