Fetches the Google Cloud Services (GCS) project id associated with a service account key.

get_project_id(path = Sys.getenv("GCS_AUTH_FILE"))

Arguments

path

path to the JSON file with your service account key

Value

a string with a GCS project id

Examples

if (FALSE) { project_id <- get_project_id() }