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) :
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4