dai_token: Produce access token

Description Usage Arguments Value Examples

View source: R/auth.R

Description

Produces an access token for Google Cloud Services (GCS)

Usage

1
2
3
4
dai_token(
  path = Sys.getenv("GCS_AUTH_FILE"),
  scopes = "https://www.googleapis.com/auth/cloud-platform"
)

Arguments

path

path to a JSON file with a service account key

scopes

GCS auth scopes for the token

Value

a GCS access token object (if credentials are valid) or a message (if not).

Examples

1
2
3
4
## Not run: 
token <- dai_token()

## End(Not run)

daiR documentation built on June 11, 2021, 5:16 p.m.