knitr::opts_chunk$set(echo = TRUE)

Setup

library(googleAuthR)
library(googleCloudVertexAIR)

options(googleAuthR.scopes.selected = "https://www.googleapis.com/auth/cloud-platform")

gar_auth_service(json_file = Sys.getenv("GAR_SERVICE_JSON"))

Set global arguements

projectId <- Sys.getenv("GCVA_DEFAULT_PROJECT_ID")
gcva_region_set("us-central1")
gcva_project_set(projectId)

List Models

models <- gcva_list_models()
models

Get model

model <- gcva_model(model = models[1,1])
model


justinjm/googleCloudVertexAIR documentation built on April 17, 2025, 5:04 p.m.