Set or get an access token or API key to/from environment variables.
Source:R/set_access_token.R
set_access_token.Rd
Based on the mapboxapi::mb_access_token function from the mapboxapi package by Kyle Walker.
Usage
set_access_token(token, overwrite = FALSE, install = FALSE, type = NULL)
get_access_token(token = NULL, type = NULL)
Arguments
- token
An access token or API key; required for
set_access_token()
. If token is not provided; type is required forget_access_token()
.- overwrite
If
TRUE
, overwrite existing token; Default:FALSE
- install
If
TRUE
, install token for use in future sessions; Default:FALSE
- type
Name of token; defaults to
NULL
.