Skip to content

Commit

Permalink
update Makefile to build and document correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
potterzot committed Mar 28, 2017
1 parent 6935d81 commit 52cf935
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ readme: README.Rmd

#R PACKAGE
#build and install the package
install: doc
install: doc readme
R -e 'devtools::check()'
R CMD INSTALL .

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ The most basic level of access is with `nassqs_GET()`, with which you can make a
req = nassqs_GET(params=params, key=your_api_key)
qsJSON = nassqs_parse(req)

Note that you can request data for multiple values of the same parameter by as follows:

params = list("commodity_desc"="CORN", "year__GE"=2012, "state_alpha"="VA", "state_alpha"="WA")
req = nassqs_GET(params=params, key=your_api_key)
qsJSON = nassqs_parse(req)

NASS does not allow GET requests that pull more than 50,000 records in one request. The function will inform you if you try to do that. It will also inform you if you've requested a set of parameters for which there are no records.

### Handling inequalities and operators other than "="
Expand Down

0 comments on commit 52cf935

Please sign in to comment.