set_mapbox_api: Set API Key

Description Usage Arguments Examples

View source: R/set_mapbox_api.R

Description

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

Usage

1

Arguments

key

a mapbox API key

Examples

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)

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