README.md

hudapi

R-CMD-check Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Overview

Load data from the HUD User Data API into R, including Fair Market Rents and Income Limits.

Note: hudapi uses the HUD User Data API but is not endorsed or certified by HUD User.

Installation

Install hudapi by running the following code:

devtools::install_github("CenterOnBudget/hudapi")

Next, if you don't already have one, sign up for a HUD API access token. Once you have your token, store it in your .Renviron file for easy-use by running the following code:

usethis::edit_r_environ()

And adding your HUD API access token like so:

HUD_API_TOKEN="your_token_here"

This allows hudapi to automatically load your access token when pulling data from the HUD API, and saves you from having to manually copy-paste your token around or openly include your token in scripts you may share with others (or post on GitHub).



CenterOnBudget/hudapi documentation built on July 6, 2021, 2:53 p.m.