set_google_api: Set API Key

Description Usage Arguments Examples

View source: R/set_google_api.R

Description

Helper function to set the google API key as an environment variable

Usage

1

Arguments

key

the api key for google cloud console. It must be enabled for the google distance matrix API and geocoding API.

Examples

1
2
3
4
5
6
7
8
## Not run: 
set_google_api('<api key here>')
# Check our assignment worked
Sys.getenv('google_api_key')

#[1] "<api key here>"

## End(Not run)

Chrisjb/RDistanceMatrix documentation built on Jan. 27, 2021, 9:12 p.m.