token_stache_path: Get or set token stache data directory

View source: R/authenticate_sb.R

token_stache_pathR Documentation

Get or set token stache data directory

Description

Will check the 'SBTOOLS_TOKEN_STACHE' environment variable and will check if the 'token_stache_path' has been set durring the current session previously. If the environment variable or session-variable are not found, returns 'file.path(tools::R_user_dir(package = "sbtools"), "token")'.

Usage

token_stache_path(dir = NULL)

Arguments

dir

path of desired token stache file. See description for behavior if left unset.

Value

character path of data directory (silent when setting)


USGS-R/sbtools documentation built on June 10, 2025, 12:52 p.m.