get_key.census: Checks to make sure the census API key is set as an...

Description Usage Value Examples

View source: R/api_helper_functions.R

Description

Checks to make sure the census API key is set as an environment variable

Usage

1
2
3
4
5
6
7
## S3 method for class 'census'
get_key(
  env_var = "CENSUS_API_KEY",
  title = "Census",
  url = "https://api.census.gov/data/key_signup.html",
  install = "texascc::api_key.census(key = 'X')"
)

Value

TRUE if a census api key exists, error if it does not exist

Examples

1
2
3
4
5
## Not run: 
texascc::api_key.census(key = "X")
texascc::get_key.census()

## End(Not run)

Texas-Policy-Lab/texas_child_care_deserts documentation built on Dec. 18, 2021, 4:07 p.m.