set_access_token: Set or get an access token or API key to/from environment...

View source: R/set_access_token.R

set_access_tokenR Documentation

Set or get an access token or API key to/from environment variables.

Description

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.


elipousson/overedge documentation built on Aug. 13, 2022, 7:41 p.m.