acs.fetch function requires an "API key" to use when
downloading data from the US Census API. Rather than pass this rather
long string to the function each time, users can save the key as part of
the package installation, using the
Once installed, an api key is saved on the system and available for use
in future sessions. (To replace a key, simply call the function again
with the new key.)
During the update process, this key may be lost or left in the wrong
location. A call to
api.key.migrate() can help restore an
archived key, if found.
Migrates the key (if found) and exits silently; return an error if no archived key is found.
Ezra Haber Glenn [email protected]
To request an API key, see http://www.census.gov/developers/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.