read_google_sheet: Read a link-shared Google Sheet as a data frame

View source: R/google_sheets.R

read_google_sheetR Documentation

Read a link-shared Google Sheet as a data frame

Description

Requires the sheet be shared as "Anyone with the link can view." Makes a real network request via googlesheet_csv_url() – not runnable on CRAN's offline check machines.

Usage

read_google_sheet(url, gid = NULL)

Arguments

url

The pasted Google Sheets link, or a bare spreadsheet ID.

gid

Optional worksheet gid (see googlesheet_csv_url()).

Value

A data frame, as read by utils::read.csv().

Examples

## Not run: 
read_google_sheet("https://docs.google.com/spreadsheets/d/abc123/edit")

## End(Not run)

forecastsuite documentation built on Oct. 18, 2026, 5:08 p.m.