hrecht / censusapi

R package to retrieve U.S. Census data and metadata via API
https://www.hrecht.com/censusapi/
169 stars 31 forks source link

Add function to check for census key in Renviron #12

Closed hrecht closed 7 years ago

hrecht commented 7 years ago

If it exists, use that - this will mean users don't have to specify a key if it's in their .Renviron. In this commit, prompt users to save their API key upon install/upgrade.

hrecht commented 7 years ago

Addressed in https://github.com/hrecht/censusapi/commit/b04ffcc7449ba217abef4363178ed1c51839cf7b Write a prompt that runs open install/load to prompt if key is not found.

hrecht commented 7 years ago

After more thought, decided against adding a prompt on package launch. Internal functions check for an API key upon running getCensus