nassqs_auth | R Documentation |
If the API key is provided, sets the environmental variable. You can set your API key in four ways:
nassqs_auth(key)
key |
the API key (obtained from https://quickstats.nass.usda.gov/api/) |
directly or as a variable from your R
program: nassqs_auth(key = "<your api key>"
by setting NASSQS_TOKEN
in your R
environment file (you'll never have
to enter it again).
by entering it into the console when asked (it will be stored for the rest of the session.)
# Set the API key
nassqs_auth(key = "<your api key>")
Sys.getenv("NASSQS_TOKEN")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.