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

Description Usage Arguments Value Examples

View source: R/api_helper_functions.R

Description

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

Usage

1
2
3
4
5
6
7
## S3 method for class 'google'
get_key(
  env_var = "Google_API_KEY",
  title = "Goggle",
  url = "https://console.cloud.google.com/project/_/apiui/credential",
  install = "texascc::api_key.google(key = 'X')"
)

Arguments

env_var.

String. The environment variable to check for.

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.google(key = "X")
texascc::get_key.google()

## End(Not run)

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