Learn R Programming

googlePubsubR (version 0.0.4)

ps_project_set: Set GCP projectId

Description

Set GCP projectId

Usage

ps_project_set(project_id)

Value

character ProjectId string

Arguments

project_id

character A valid GCP projectId

See Also

Other Auth functions: ps_project_get(), pubsub_auth()

Examples

Run this code
if (FALSE) {
ps_project_set("my-new-project")
# Do whatever...
# Jump back on the default project
ps_project_set(Sys.getenv("GCP_PROJECT"))
}

Run the code above in your browser using DataLab