Description Usage Arguments Examples
View source: R/set_mapbox_api.R
Helper function to set the mapbox API key as an environment variable
1 | set_mapbox_api(key)
|
key |
a mapbox API key |
1 2 3 4 5 6 7 8 | ## Not run:
set_mapbox_api('<api key here>')
# Check our assignment worked
Sys.getenv('mapbox_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.