A collaborative project to build R tools facilitating access to public healthcare data
ropenhealth / rhealthdatagov Goto Github PK
View Code? Open in Web Editor NEWR interface to the HealthData.gov Data API
R interface to the HealthData.gov Data API
checking R code for possible problems ... NOTE
.quick_fetch: no visible global function definition for ‘POST’
.quick_fetch: no visible global function definition for ‘add_headers’
.quick_fetch: no visible global function definition for
‘stop_for_status’
.quick_fetch: no visible global function definition for ‘content’
fetch_healthdata: no visible binding for global variable ‘resources’
fetch_healthdata : <anonymous>: no visible binding for global variable
‘filters’
I think the best way to fix these is to explicitly prefix with the package name, httr::POST
, httr::add_headers
etc
I don't know if this makes sense anymore since the API is not currently functional, but there are some updates here that never made it to CRAN. Also need to update the maintainer address.
That point to this repo
The healthdata.gov Data API seems to be offline/broken, so the rHealthDataGov R package is not working at this time. I will try to get in touch with the people who run the API to see what the problem is.
To test the API from the command line, you can run a command like this:
curl http://hub.Healthdata.gov/api/action/datastore_search --data-urlencode '
{
"resource_id": "391792b5-9c0a-48a1-918f-2ee63caa1c54",
"filters": {
"addr_city": "SAN FRANCISCO"
}
}'
This currently returns the following error:
<html>
<head>
<title>Server Error</title>
</head>
<body>
<h1>Server Error</h1>
An internal server error occurred
</body>
</html>
In the R package, the error looks like this:
> library(rHealthDataGov)
> df <- fetch_healthdata(resource="hosp", filter=list(addr_city="SAN FRANCISCO"))
Error in .quick_fetch(jsontext) :
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.