steadyfish / ogdindiar Goto Github PK
View Code? Open in Web Editor NEWR package to access data from Open Government Data Platform - India
License: Other
R package to access data from Open Government Data Platform - India
License: Other
I can't run vignette/basic-usage-vignette.Rmd
I tried
library(knitr)
knit("basic-usage-vignette.Rmd")
and
library(rmarkdown)
render("basic-usage-vignette.Rmd")
Check that the vignette can be converted into md file (or another format). I would recommend adding the resulting md file (and the associated figures directory that will be generated) into the vignette folder. In that case it can be easily viewed like in here: https://github.com/rOpenGov/eurostat/blob/master/vignettes/eurostat_tutorial.md
Perhaps provide an option to store the API key as an environment variable.
http://stackoverflow.com/questions/12533113/setting-environment-variables-programmatically
Due to some SSL certificate error, had to include a cainfo parameter in getURL call. Not sure if this is the right way.
error:
RCurl SSL certificate problem: unable to get local issuer certificate
corrected call:
doc = RCurl::getURL(url = JSON_URL, cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
Hi,
I tried to download these data from the website https://data.gov.in/catalog/indian-railways-train-time-table-0
and got this error
fetch_data("b46200c1-ca9a-4bbe-92f8-b5039cc25a12")
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to data.gov.in:443
Do you get the same error for this dataset?
When you try to fetch data via fetch_data(res_id = ""),
data does not get downloaded and metadata gets downloaded at its place.I seems JSON structure is changed in thereceived data and we are not looking at the right element of the list for the data.
Thanks
Santosh
Many of the datasets, although not available as API's, are available in JSON/JSONP format. See if this in anyway can be exploited for programmatic data extract.
Current version of functions uses JSON API. In future also make available XML API option.
Also, check of any advantage one method offers over the other.
Hi,
I've just installed your R package and I'm very happy you've written it, thanks a lot!
I see that there is not much activity on the repo, so I wonder whether you're still developping this package? I hope you are because it can be very useful.
My other question is whether you think it would be possible to add a search function, i.e. for finding datasets IDs based on e.g. keywords?
Anyway, thanks again for making this package available! :-)
Currently, all the columns in the downloaded data are of type"char". Columns should be converted to either int, time, char based on metadata.
-> need to update the roxygen documentation here.
According to CRAN policies:
The Title field should be in title case, current version then in title case:
‘API access to datasets on Open Government Data - India Portal’
‘API Access to Datasets on Open Government Data - India Portal’
Basically requires some text/string manipulation.
Filter example from data.gov.in
Hi,
Could you just make the package available for R version 3.1.1. Since, I don't have the 3.2.0 version of R for my system yet (Mac OSX 10.7.5).
Thanks,
Subinoy
This is not an issue per se, but the files in inst/extras aren't required isn't it? Good to remove them.
One way to handle this is to add as the first line within the function:
pat <- NULL
This has worked well for me, perhaps there are better ways.
The ./inst/extras/build.cran.sh (from my recent pull request) says:
To declare license (MIT is fine) you need to follow the convention that you can check for instance here:
https://github.com/ropengov/eurostat/blob/master/DESCRIPTION
So modify your DESCRIPTION file License field in the same as there, and also add the file named LICENSE to the same root directory where you have the DESCRIPTION file
https://github.com/ropengov/eurostat/blob/master/LICENSE
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.