This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Scrape Grants.Gov Data using the API Query Parameters | |
## See http://docs.fbopen.apiary.io/ for details | |
## Specify keywords, whether you want to see noncompeted and/or closed grants, | |
## your API key, and whether or not you want to peek at the results first (see the first 10). | |
library(jsonlite, warn.conflicts=F) | |
library(RCurl, warn.conflicts=F) | |
getGrantsGovData = function(keywords=c(), showNonCompeted=TRUE, showClosed=TRUE, my.key="", peek=FALSE) { |