Learn R Programming

daiR (version 1.0.0)

get_project_id: Get project id

Description

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

Usage

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

Value

a string with a GCS project id

Arguments

path

path to the JSON file with your service account key

Examples

Run this code
if (FALSE) {
project_id <- get_project_id()
}

Run the code above in your browser using DataLab