Register a HUD API key
register_hud_api_key.RdStores a HUD API key so that get_chas_housing_affordability() can authenticate against
HUD's CHAS API. By default the key is set for the current R session only; set
install = TRUE to also persist it to your user-level .Renviron so that it is
available in future sessions.
Arguments
- key
A HUD API key: a single, non-empty character string. Obtain one by registering at https://www.huduser.gov/portal/dataset/fmr-api.html.
- install
Logical. If
TRUE, write the key to your user-level.Renviron(replacing any existingHUD_API_KEYentry) so it persists across sessions. Defaults toFALSE, which sets the key for the current session only.