Description Usage Arguments Examples
View source: R/set_google_api.R
Helper function to set the google API key as an environment variable
1 | set_google_api(key)
|
key |
the api key for google cloud console. It must be enabled for the google distance matrix API and geocoding API. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.