Skip to contents

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 for get_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.