auth_g_sheets_gcp: Authorize googlesheets4 using GCP Service Account Key

auth_g_sheets_gcpR Documentation

Authorize googlesheets4 using GCP Service Account Key

Description

Authorizes the googlesheets4 package to access and manage Google Sheets via a Google Cloud Platform (GCP) Service Account Key file (in JSON format). See the relevant documentation for details.

Usage

auth_g_sheets_gcp(
  path_gcp_service_account_key = Sys.getenv("PATH_GCP_KEY_ZDA")
)

Arguments

path_gcp_service_account_key

Path to the GCP Service Account Key JSON file.

Details

The recommended way to provide the filesystem path to the GCP Service Account Key file is to set the environment variable PATH_GCP_KEY_ZDA to that path, e.g. via the .Renviron file.

Value

path_gcp_service_account_key, invisibly.

See Also

Other Google Apps functions: auth_g_drive_gcp(), backup_g_file(), backup_g_sheet(), g_file_mod_time(), upload_to_g_drive()


zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.