Authenticate a Pub/Sub client

pubsub_auth(
  json_file = Sys.getenv("GCP_AUTH_FILE"),
  token = NULL,
  email = NULL
)

Arguments

json_file

character Path of the JSON file containing credentials for a GCP service account

token

character An existing authentication token

email

character The email to default authentication to

Value

None, called for side effects

See also

Other Auth functions: ps_project_get(), ps_project_set()