Checks whether the user can obtain an access token for Google Cloud Services (GCS) using a service account key stored on file.
dai_auth(
path = Sys.getenv("GCS_AUTH_FILE"),
scopes = "https://www.googleapis.com/auth/cloud-platform"
)
no return value, called for side effects
daiR takes a very parsimonious approach to authentication,
with the native auth functions only supporting service account files.
Those who prefer other authentication methods can pass those directly
to the token
parameter in the various functions that call the
Document AI API.
if (FALSE) { # \dontrun{
dai_auth()
} # }